[epiphany] uri-tester: Remove UriTesterReload
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] uri-tester: Remove UriTesterReload
- Date: Sun, 8 Nov 2015 00:11:08 +0000 (UTC)
commit 98d839aae018397e760fb4e8062d035293faba97
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Sep 10 18:11:04 2015 -0500
uri-tester: Remove UriTesterReload
embed/web-extension/uri-tester.c | 31 -------------------------------
embed/web-extension/uri-tester.h | 2 --
2 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/embed/web-extension/uri-tester.c b/embed/web-extension/uri-tester.c
index 6054486..d39cfbc 100644
--- a/embed/web-extension/uri-tester.c
+++ b/embed/web-extension/uri-tester.c
@@ -931,34 +931,3 @@ uri_tester_set_filters (UriTester *tester, GSList *filters)
priv->filters = filters;
}
-
-void
-uri_tester_reload (UriTester *tester)
-{
- GDir *g_data_dir = NULL;
-
- /* Remove data files in the data dir first. */
- g_data_dir = g_dir_open (tester->priv->data_dir, 0, NULL);
- if (g_data_dir)
- {
- const char *filename = NULL;
- char *filepath = NULL;
-
- while ((filename = g_dir_read_name (g_data_dir)))
- {
- /* Omit the list of filters. */
- if (!g_strcmp0 (filename, FILTERS_LIST_FILENAME))
- continue;
-
- filepath = g_build_filename (tester->priv->data_dir, filename, NULL);
- g_unlink (filepath);
-
- g_free (filepath);
- }
-
- g_dir_close (g_data_dir);
- }
-
- /* Load patterns from current filters. */
- uri_tester_load_patterns (tester);
-}
diff --git a/embed/web-extension/uri-tester.h b/embed/web-extension/uri-tester.h
index b264b4b..579d3aa 100644
--- a/embed/web-extension/uri-tester.h
+++ b/embed/web-extension/uri-tester.h
@@ -58,8 +58,6 @@ gboolean uri_tester_test_uri (UriTester *tester,
void uri_tester_set_filters (UriTester *tester, GSList *filters);
-void uri_tester_reload (UriTester *tester);
-
G_END_DECLS
#endif /* URI_TESTER_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]