sane.ds: Remove dead code (clang)
André Hentschel
nerv at dawncrow.de
Sun Jul 10 11:19:02 CDT 2011
---
dlls/sane.ds/capability.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/dlls/sane.ds/capability.c b/dlls/sane.ds/capability.c
index 20fd2c3..9b2f058 100644
--- a/dlls/sane.ds/capability.c
+++ b/dlls/sane.ds/capability.c
@@ -1087,11 +1087,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)
@@ -1115,7 +1110,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:
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list