=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: sane.ds: Remove dead code (Clang).

Alexandre Julliard julliard at wine.codeweavers.com
Fri Dec 25 11:19:21 CST 2015


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

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Dec 22 19:31:01 2015 +0100

sane.ds: Remove dead code (Clang).

Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/sane.ds/capability.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c
index 7d3376f..45c54a1 100644
--- a/dlls/sane.ds/capability.c
+++ b/dlls/sane.ds/capability.c
@@ -1081,11 +1081,6 @@ static TW_UINT16 SANE_CAPFeederEnabled (pTW_CAPABILITY pCapability, TW_UINT16 ac
             twCC = msg_set(pCapability, &val);
             if (twCC == TWCC_SUCCESS)
             {
-                if (val)
-                    enabled = TRUE;
-                else
-                    enabled = FALSE;
-
                 strcpy(source, "ADF");
                 status = sane_option_set_str(activeDS.deviceHandle, SANE_NAME_SCAN_SOURCE, source, NULL);
                 if (status != SANE_STATUS_GOOD)
@@ -1109,7 +1104,6 @@ static TW_UINT16 SANE_CAPFeederEnabled (pTW_CAPABILITY pCapability, TW_UINT16 ac
             strcpy(source, "Auto");
             if (sane_option_set_str(activeDS.deviceHandle, SANE_NAME_SCAN_SOURCE, source, NULL) == SANE_STATUS_GOOD)
                 enabled = TRUE;
-            twCC = TWCC_SUCCESS;
             /* .. fall through intentional .. */
 
         case MSG_GETCURRENT:




More information about the wine-cvs mailing list