From 6277669654a4c66ea78de6f9133706d299dd819e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 18 Jun 2010 16:22:07 +0000 Subject: [PATCH] Removed one liner function that was only called from one place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37166 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageView.cpp | 9 +-------- src/apps/showimage/ShowImageView.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index e5444e2d2c..a60c2252e2 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -378,13 +378,6 @@ ShowImageView::_UpdateStatusText() } -void -ShowImageView::_AddToRecentDocuments() -{ - be_roster->AddToRecentDocuments(&fCurrentRef, kApplicationSignature); -} - - void ShowImageView::_DeleteScaler() { @@ -549,7 +542,7 @@ ShowImageView::SetImage(const entry_ref *ref) fCaption << ", " << fImageType; fZoom = 1.0; - _AddToRecentDocuments(); + be_roster->AddToRecentDocuments(&fCurrentRef, kApplicationSignature); _Notify(); return B_OK; diff --git a/src/apps/showimage/ShowImageView.h b/src/apps/showimage/ShowImageView.h index 02fab205a0..da80187ceb 100644 --- a/src/apps/showimage/ShowImageView.h +++ b/src/apps/showimage/ShowImageView.h @@ -156,7 +156,6 @@ private: void _SendMessageToWindow(uint32 code); void _Notify(); void _UpdateStatusText(); - void _AddToRecentDocuments(); void _AddWhiteRect(BRect& rect); void _GetMergeRects(BBitmap* merge, BRect selection, BRect& srcRect,