--- a/scan/sane/hpaio.c +++ b/scan/sane/hpaio.c @@ -34,7 +34,6 @@ #include #include #include -#include #include "hpmud.h" #include "hpip.h" #include "hp_ipp.h" @@ -144,98 +143,6 @@ static int GetUriLine(char *buf, char *u return i; } -static int AddCupsList(char *uri, char ***printer) -{ - int i, stat=1; - - /* Look for hp network URIs only. */ - if (strncasecmp(uri, "hp:/net/", 8) !=0) - goto bugout; - - if (*printer == NULL) - { - /* Allocate array of string pointers. */ - *printer = malloc(sizeof(char *) * MAX_DEVICE); - memset(*printer, 0, sizeof(char *) * MAX_DEVICE); - } - - /* Ignor duplicates (ie: printer queues using the same device). */ - for (i=0; (*printer)[i] != NULL && i