Alexandre Julliard : sane.ds: Remove unused variables.

Alexandre Julliard julliard at winehq.org
Wed Jul 21 10:54:52 CDT 2010


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Jul 21 11:06:52 2010 +0200

sane.ds: Remove unused variables.

---

 dlls/sane.ds/options.c   |    3 ---
 dlls/sane.ds/sane_main.c |    3 +--
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/dlls/sane.ds/options.c b/dlls/sane.ds/options.c
index c78cf8e..67cb1dc 100644
--- a/dlls/sane.ds/options.c
+++ b/dlls/sane.ds/options.c
@@ -252,15 +252,12 @@ static void convert_double_fix32(double d, TW_FIX32 *fix32)
 
 BOOL convert_sane_res_to_twain(double sane_res, SANE_Unit unit, TW_FIX32 *twain_res, TW_UINT16 twtype)
 {
-    double d;
-
     if (unit != SANE_UNIT_MM)
         return FALSE;
 
     if (twtype != TWUN_INCHES)
         return FALSE;
 
-    d = (sane_res / 10.0) / 2.54;
     convert_double_fix32((sane_res / 10.0) / 2.54, twain_res);
 
     return TRUE;
diff --git a/dlls/sane.ds/sane_main.c b/dlls/sane.ds/sane_main.c
index a873d6c..13422bb 100644
--- a/dlls/sane.ds/sane_main.c
+++ b/dlls/sane.ds/sane_main.c
@@ -92,14 +92,13 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
     {
         case DLL_PROCESS_ATTACH: {
 #ifdef SONAME_LIBSANE
-	    SANE_Status status;
 	    SANE_Int version_code;
 
             libsane_handle = open_libsane();
             if (! libsane_handle)
                 return FALSE;
 
-	    status = psane_init (&version_code, NULL);
+	    psane_init (&version_code, NULL);
 #endif
 	    SANE_instance = hinstDLL;
             DisableThreadLibraryCalls(hinstDLL);




More information about the wine-cvs mailing list