kvs20xx: fix [-Wunused-function] compiler warning

This rather unceremoniously removed the function.  Note that a near copy
can be found in the kvs40xx backend code.
merge-requests/1/head
Olaf Meeuwissen 2016-07-18 20:53:51 +09:00
rodzic 2d46885228
commit effc26e402
1 zmienionych plików z 0 dodań i 23 usunięć

Wyświetl plik

@ -301,29 +301,6 @@ kvs20xx_read_picture_element (struct scanner * s, unsigned side,
return SANE_STATUS_GOOD;
}
static SANE_Status
get_buffer_status (struct scanner * s, unsigned *data_avalible)
{
SANE_Status status;
struct cmd c = {
{0},
10,
0,
12,
CMD_IN
};
u32 *data;
c.cmd[0] = GET_BUFFER_STATUS;
c.cmd[7] = 12;
status = send_command (s, &c);
if (status)
return status;
data = (u32 *) c.data;
*data_avalible = be2cpu32 (data[3]);
return SANE_STATUS_GOOD;
}
SANE_Status
kvs20xx_read_image_data (struct scanner * s, unsigned page, unsigned side,
void *buf, unsigned max_size, unsigned *size)