Remove unused code segments

This commit is contained in:
Thomas Rientjes
2017-12-10 23:15:59 -03:00
parent 861ba95dee
commit 449bf8c064
2 changed files with 1 additions and 13 deletions

View File

@@ -24,8 +24,7 @@ const Address = {
'EXAMPLE': 'example.org',
'HTTP': 'http:',
'HTTPS': 'https:',
'WWW_PREFIX': 'www.',
'WWW_PREFIX_LENGTH': 4
'WWW_PREFIX': 'www.'
};
const Resource = {

View File

@@ -126,17 +126,6 @@ requestAnalyzer._applyWhitelistedDomains = function () {
});
};
requestAnalyzer._normalizeDomain = function (domain) {
domain = domain.toLowerCase().trim();
if (domain.startsWith(Address.WWW_PREFIX)) {
domain = domain.slice(Address.WWW_PREFIX_LENGTH);
}
return domain;
};
/**
* Initializations
*/