Kai Blin : taskmgr: Remove unused variable and if check (Coverity).

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 8 06:35:34 CST 2007


Module: wine
Branch: master
Commit: 56e76849b8f035667dbb3f82f48302d1d72c6e0f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=56e76849b8f035667dbb3f82f48302d1d72c6e0f

Author: Kai Blin <kai.blin at gmail.com>
Date:   Sun Jan  7 10:45:22 2007 +0100

taskmgr: Remove unused variable and if check (Coverity).

---

 programs/taskmgr/graphctl.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/programs/taskmgr/graphctl.c b/programs/taskmgr/graphctl.c
index 9a162a6..749d9fa 100644
--- a/programs/taskmgr/graphctl.c
+++ b/programs/taskmgr/graphctl.c
@@ -127,15 +127,11 @@ TGraphCtrl::~TGraphCtrl()
 
 BOOL GraphCtrl_Create(TGraphCtrl* this, HWND hWnd, HWND hParentWnd, UINT nID) 
 {
-    BOOL result = 0;
-
     GraphCtrl_Init(this);
     this->m_hParentWnd = hParentWnd;
     this->m_hWnd = hWnd;
     GraphCtrl_Resize(this);
-    if (result != 0)
-        GraphCtrl_InvalidateCtrl(this);
-    return result;
+    return 0;
 }
 
 void GraphCtrl_SetRange(TGraphCtrl* this, double dLower, double dUpper, int nDecimalPlaces)




More information about the wine-cvs mailing list