From a6c08a34472fc06caf797250e97931ebad5d9bf3 Mon Sep 17 00:00:00 2001 From: Albert S Date: Sun, 15 Nov 2020 20:27:48 +0100 Subject: [PATCH] Parser: reformat and remove dead code --- parser.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/parser.cpp b/parser.cpp index aa79746..75e46ff 100644 --- a/parser.cpp +++ b/parser.cpp @@ -144,14 +144,3 @@ std::string Parser::parse(const PageDao &pagedao, UrlProvider &provider, std::st result = utils::strreplace(result, "\r\n", "
"); return result; } - -/* -std::string Parser::parse(std::string content) -{ - std::string result; - std::regex linkfinder("\\[((?:wiki)?link)\\](.*?)\\[/(?:wiki)?link\\]"); - result = utils::regex_callback_replacer(linkfinder, content, [&](std::smatch &match) { return -this->processLink(match); }); std::regex -tagfinderregex("\\[(/?)(b|i|u|h1|h2|h3|table|tr|td|ul|ol|li|code|blockquote)\\]"); result = std::regex_replace(result, -tagfinderregex, "<$1$2>"); result = utils::strreplace(result, "\r\n", "
"); return result; -}*/