diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2016-10-30 14:51:04 +0000 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2016-11-21 18:31:47 +0000 |
commit | 42dbb6f6e8a543feffe8207f6ba0c86fffc64e79 (patch) | |
tree | 9d699542986053c55735f59a739660738f69f3c5 | |
parent | 723b393b67b44479b28cf182834b91c06a01cb2c (diff) | |
download | tracker-42dbb6f6e8a543feffe8207f6ba0c86fffc64e79.tar.gz |
tests: Remove some unused code and compile flags
-rw-r--r-- | tests/gvdb/Makefile.am | 1 | ||||
-rw-r--r-- | tests/libtracker-data/tracker-db-manager-common.c | 48 | ||||
-rw-r--r-- | tests/libtracker-data/tracker-db-manager-common.h | 30 |
3 files changed, 0 insertions, 79 deletions
diff --git a/tests/gvdb/Makefile.am b/tests/gvdb/Makefile.am index 32bbe53fb..68576e97e 100644 --- a/tests/gvdb/Makefile.am +++ b/tests/gvdb/Makefile.am @@ -8,7 +8,6 @@ AM_CPPFLAGS = \ $(BUILD_CFLAGS) \ -I$(top_srcdir)/src \ -I$(top_builddir)/src \ - -DSHAREDIR=\""$(datadir)"\" \ $(GVDB_CFLAGS) gvdb_test_SOURCES = gvdb-test.c diff --git a/tests/libtracker-data/tracker-db-manager-common.c b/tests/libtracker-data/tracker-db-manager-common.c deleted file mode 100644 index 3765988c1..000000000 --- a/tests/libtracker-data/tracker-db-manager-common.c +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2008, Nokia <ivan.frade@nokia.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ -#include "tracker-db-manager-common.h" - -gboolean -test_assert_query_run (TrackerDB db, const gchar *query) -{ - TrackerDBInterface *iface; - - iface = tracker_db_manager_get_db_interface (db); - - return test_assert_query_run_on_iface (iface, query); - -} - -gboolean -test_assert_query_run_on_iface (TrackerDBInterface *iface, const gchar *query) -{ - GError *error = NULL; - - tracker_db_interface_execute_query (iface, - &error, - query); - - if (error && error->message) { - g_warning ("Error loading query:'%s' - %s", query, error->message); - g_error_free (error); - return FALSE; - } - - return TRUE; -} diff --git a/tests/libtracker-data/tracker-db-manager-common.h b/tests/libtracker-data/tracker-db-manager-common.h deleted file mode 100644 index 95bc203c2..000000000 --- a/tests/libtracker-data/tracker-db-manager-common.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2008, Nokia <ivan.frade@nokia.com> - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. - */ - -#ifndef __TRACKER_DB_MANAGER_TEST_COMMON__ -#define __TRACKER_DB_MANAGER_TEST_COMMON__ - -#include <glib.h> - -#include <libtracker-data/tracker-data.h> - -gboolean test_assert_query_run (TrackerDB db, const gchar *query); -gboolean test_assert_query_run_on_iface (TrackerDBInterface *iface, const gchar *query); - -#endif |