diff --git a/backend/genesys/genesys.cpp b/backend/genesys/genesys.cpp index f8463145e..ceb37e883 100644 --- a/backend/genesys/genesys.cpp +++ b/backend/genesys/genesys.cpp @@ -3675,12 +3675,6 @@ static void genesys_sheetfed_calibration(Genesys_Device* dev, Genesys_Sensor& se /* led, offset and gain calibration are influenced by scan * settings. So we set it to sensor resolution */ dev->settings.xres = sensor.optical_res; - /* XP200 needs to calibrate a full and half sensor's resolution */ - if (dev->model->sensor_id == SensorId::CIS_XP200 && - dev->settings.xres <= sensor.optical_res / 2) - { - dev->settings.xres /= 2; - } /* the afe needs to sends valid data even before calibration */ diff --git a/backend/genesys/low.cpp b/backend/genesys/low.cpp index da2ff654c..99371e89c 100644 --- a/backend/genesys/low.cpp +++ b/backend/genesys/low.cpp @@ -335,29 +335,6 @@ void debug_print_status(DebugMessageHelper& dbg, Status val) dbg.vlog(DBG_info, "status=%s\n", str.str().c_str()); } -#if 0 -/* returns pixels per line from register set */ -/*candidate for moving into chip specific files?*/ -static int -genesys_pixels_per_line (Genesys_Register_Set * reg) -{ - int pixels_per_line; - - pixels_per_line = reg->get8(0x32) * 256 + reg->get8(0x33); - pixels_per_line -= (reg->get8(0x30) * 256 + reg->get8(0x31)); - - return pixels_per_line; -} - -/* returns dpiset from register set */ -/*candidate for moving into chip specific files?*/ -static int -genesys_dpiset (Genesys_Register_Set * reg) -{ - return reg->get8(0x2c) * 256 + reg->get8(0x2d); -} -#endif - /** read the number of valid words in scanner's RAM * ie registers 42-43-44 */