]> git.sur5r.net Git - bacula/bacula/commitdiff
remove old db_get_int_handler()
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 9 Oct 2009 09:17:30 +0000 (11:17 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 9 Oct 2009 09:17:30 +0000 (11:17 +0200)
bacula/src/cats/sql_get.c

index 4c553025bfde87da8c8d15b6e5bf80c9de3e8f92..d065ba09f9b14c2d1ca601be96a8b2ff126c2a8e 100644 (file)
@@ -1259,19 +1259,4 @@ bail_out:
    return false;
 }
 
-/*
- * Use to build a string of int list from a query. "10,20,30"
- */
-int db_get_int_handler(void *ctx, int num_fields, char **row)
-{
-   POOLMEM *ret = (POOLMEM *)ctx;
-   if (num_fields == 1) {
-      if (ret[0]) {
-         pm_strcat(ret, ",");
-      }
-      pm_strcat(ret, row[0]);
-   }
-   return 0;
-}
-
 #endif /* HAVE_SQLITE3 || HAVE_MYSQL || HAVE_SQLITE || HAVE_POSTGRESQL || HAVE_DBI */