Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginUtil.cpp

Issue 5652794446970880: Rely on libadblockplus for domain extraction (Closed)
Patch Set: Use libadblockplus for domain extraction in APP as well Created April 22, 2014, 7:48 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginUtil.cpp
===================================================================
--- a/src/plugin/PluginUtil.cpp
+++ b/src/plugin/PluginUtil.cpp
@@ -43,13 +43,3 @@
std::replace(url.begin(), url.end(), L'\\', L'/');
return L"file:///" + url;
}
-
-CString ExtractDomain(const CString& url)
-{
- int pos = 0;
- if (url.Find('/', pos) >= 0)
- url.Tokenize(L"/", pos);
- CString domain = url.Tokenize(L"/", pos);
- domain.MakeLower();
- return domain;
-}

Powered by Google App Engine
This is Rietveld