]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5141 revert f8d769ae1ce86c814cca03cbc8dee659447d3a19 from FS-4289
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Mar 2013 14:50:08 +0000 (08:50 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 5 Mar 2013 14:50:08 +0000 (08:50 -0600)
src/switch_core_db.c

index 590301fcc5abca8405e59591bdbd69388021442b..2eee23bce3e561c5661720a032b411fffd4346d9 100644 (file)
@@ -45,20 +45,6 @@ static void db_pick_path(const char *dbname, char *buf, switch_size_t size)
        }
 }
 
-struct integrity_check_cb_arg {
-       int rows;
-       int ok;
-};
-
-/* pragma integrity_check returns a single row with the value "ok" if no errors are found */
-static int integrity_check_cb(void *pArg, int argc, char **argv, char **columnNames)
-{
-       struct integrity_check_cb_arg *cb_arg = (struct integrity_check_cb_arg *)pArg;
-       cb_arg->rows++;
-       cb_arg->ok = (0 == strcasecmp(argv[0], "ok"));
-       return 0;
-}
-
 SWITCH_DECLARE(int) switch_core_db_open(const char *filename, switch_core_db_t **ppDb)
 {
        return sqlite3_open(filename, ppDb);