aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-12 20:05:42 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-09-19 12:41:58 +0900
commit6f4b88b6173745f09e4ce1fa465db534eca85751 (patch)
tree9fa96180fac200deb579c63b164bc802c53ada0c
parent4dce101c05515200a6cd337451da664c1978f115 (diff)
epson2: fix [-Wunused-but-set-variable] compiler warning
This makes explicit what the compiler has effectively been doing all along anyway since at least 728e032a (2009-06-01).
-rw-r--r--backend/epson2-ops.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/backend/epson2-ops.c b/backend/epson2-ops.c
index eac01b0..1ba2292 100644
--- a/backend/epson2-ops.c
+++ b/backend/epson2-ops.c
@@ -2087,7 +2087,6 @@ e2_block_read(struct Epson_Scanner *s)
{
SANE_Status status;
SANE_Bool reorder = SANE_FALSE;
- SANE_Bool needStrangeReorder = SANE_FALSE;
START_READ:
DBG(18, "%s: begin\n", __func__);
@@ -2150,22 +2149,6 @@ e2_block_read(struct Epson_Scanner *s)
*/
/*
- * Some scanners (e.g. the Perfection 1640 and GT-2200) seem
- * to have the R and G channels swapped.
- * The GT-8700 is the Asian version of the Perfection 1640.
- * If the scanner name is one of these and the scan mode is
- * RGB then swap the colors.
- */
-
- /* never used, beta testers required */
- needStrangeReorder =
- (strstr(s->hw->model, "GT-2200") ||
- ((strstr(s->hw->model, "1640")
- && strstr(s->hw->model, "Perfection"))
- || strstr(s->hw->model, "GT-8700")))
- && s->params.format == SANE_FRAME_RGB;
-
- /*
* Certain Perfection 1650 also need this re-ordering of the two
* color channels. These scanners are identified by the problem
* with the half vertical scanning area. When we corrected this,