From 4890310d97f29173032363d17ae4bcd457dd9e21 Mon Sep 17 00:00:00 2001 From: Juliana Rodrigueiro Date: Wed, 19 Sep 2018 17:15:22 +0200 Subject: [PATCH] Remove redundant parameter --- src/restricted_html.cpp | 8 -------- src/restricted_html.hpp | 4 ---- 2 files changed, 0 insertions(+), 12 deletions(-) diff --git a/src/restricted_html.cpp b/src/restricted_html.cpp index d83cdd0..459cd60 100644 --- a/src/restricted_html.cpp +++ b/src/restricted_html.cpp @@ -290,14 +290,11 @@ bool handle_attr_href(string &link) * Strip closing tags that were not open and close tags that were not closed. * * @param html_code_orig input html code. Non case sensitive. -* @param redirect_prefix Prefix that will be added to the url in case of a valid -* html "a" tag. * @param strip if true disallowed tags are stripped otherwise throw an error. * Defaults to true. * @return output html code */ const string restrict_html(const string &html_code_orig, - const std::string &redirect_prefix, bool strip) { string html_code(html_code_orig); @@ -351,11 +348,6 @@ const string restrict_html(const string &html_code_orig, return result.c_str(); } -const string restrict_html(const string &html_code_orig, bool strip) -{ - return restrict_html(html_code_orig, REDIRECT_PREFIX, strip); -} - /** * @brief Replace all "+" characters found in s to spaces (" "). * diff --git a/src/restricted_html.hpp b/src/restricted_html.hpp index fb1277d..83e631c 100644 --- a/src/restricted_html.hpp +++ b/src/restricted_html.hpp @@ -31,10 +31,6 @@ on this file might be covered by the GNU General Public License. namespace I2n { - - const std::string restrict_html(const std::string &html_code_orig, - const std::string &redirect_prefix, - bool strip=true); const std::string restrict_html(const std::string &html_code_orig, bool strip=true); -- 1.7.1