diff options
author | Adrian Perez de Castro <aperez@igalia.com> | 2019-01-28 19:51:03 +0200 |
---|---|---|
committer | Adrian Perez de Castro <aperez@igalia.com> | 2019-08-06 00:40:03 +0300 |
commit | 42f45409d3240099c5ff3af469a7212150c6a7ca (patch) | |
tree | 449a6a2cd7825ab39c03c4dcdfd5186311ddae98 /lib | |
parent | 83ff5bff56b0de72f46447653ad79451c53d85fa (diff) | |
download | epiphany-42f45409d3240099c5ff3af469a7212150c6a7ca.tar.gz |
Remove ephy-uri-tester-shared.{h,c}
The only definitions being used were the definitions for the ad blocking
rule set URLs, which are moved to ephy-filters-manager.h
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-uri-tester-shared.c | 38 | ||||
-rw-r--r-- | lib/ephy-uri-tester-shared.h | 33 | ||||
-rw-r--r-- | lib/meson.build | 1 |
3 files changed, 0 insertions, 72 deletions
diff --git a/lib/ephy-uri-tester-shared.c b/lib/ephy-uri-tester-shared.c deleted file mode 100644 index 323b36001..000000000 --- a/lib/ephy-uri-tester-shared.c +++ /dev/null @@ -1,38 +0,0 @@ -/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* - * Copyright © 2016 Igalia S.L. - * - * This file is part of Epiphany. - * - * Epiphany 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 3 of the License, or - * (at your option) any later version. - * - * Epiphany 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 Epiphany. If not, see <http://www.gnu.org/licenses/>. - */ - -#include "config.h" -#include "ephy-uri-tester-shared.h" - -GFile * -ephy_uri_tester_get_adblock_filter_file (const char *adblock_data_dir, - const char *filter_url) -{ - char *filter_filename, *filter_path; - GFile *filter_file; - - filter_filename = g_compute_checksum_for_string (G_CHECKSUM_MD5, filter_url, -1); - filter_path = g_build_filename (adblock_data_dir, filter_filename, NULL); - g_free (filter_filename); - filter_file = g_file_new_for_path (filter_path); - g_free (filter_path); - - return filter_file; -} diff --git a/lib/ephy-uri-tester-shared.h b/lib/ephy-uri-tester-shared.h deleted file mode 100644 index 038417d5a..000000000 --- a/lib/ephy-uri-tester-shared.h +++ /dev/null @@ -1,33 +0,0 @@ -/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* - * Copyright © 2016 Igalia S.L. - * - * This file is part of Epiphany. - * - * Epiphany 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 3 of the License, or - * (at your option) any later version. - * - * Epiphany 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 Epiphany. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -#include <gio/gio.h> - -G_BEGIN_DECLS - -#define ADBLOCK_DEFAULT_FILTER_URL "https://easylist.to/easylist/easylist.txt" -#define ADBLOCK_PRIVACY_FILTER_URL "https://easylist.to/easylist/easyprivacy.txt" - -GFile *ephy_uri_tester_get_adblock_filter_file (const char *adblock_data_dir, - const char *filter_url); - -G_END_DECLS diff --git a/lib/meson.build b/lib/meson.build index 6a4eeb589..2060d7d4e 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -39,7 +39,6 @@ libephymisc_sources = [ 'ephy-sync-utils.c', 'ephy-time-helpers.c', 'ephy-uri-helpers.c', - 'ephy-uri-tester-shared.c', 'ephy-user-agent.c', 'ephy-web-app-utils.c', 'ephy-zoom.c', |