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

Unified Diff: lib/elemHide.js

Issue 29757588: Issue 6562 - Remove the unused getSelectors function (Closed)
Patch Set: Created April 20, 2018, 6:41 p.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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/elemHide.js
diff --git a/lib/elemHide.js b/lib/elemHide.js
index 1f6429fda35be0e4060bd1e92e2b236388bcc4d2..9aa1ae3948540af980eda636d9530464c6951aa6 100644
--- a/lib/elemHide.js
+++ b/lib/elemHide.js
@@ -244,32 +244,6 @@ let ElemHide = exports.ElemHide = {
return (key in filterByKey ? filterByKey[key] : null);
},
- /**
- * Returns a list of all selectors as a nested map. On first level, the keys
- * are all values of `ElemHideBase.selectorDomain` (domains on which these
- * selectors should apply, ignoring exceptions). The values are maps again,
- * with the keys being selectors and values the corresponding filter keys.
- * @returns {Map.<String,Map<String,String>>}
- */
- getSelectors()
- {
- let domains = new Map();
- for (let key in filterByKey)
- {
- let filter = filterByKey[key];
- if (!filter.selector)
- continue;
-
- let domain = filter.selectorDomain || "";
-
- if (!domains.has(domain))
- domains.set(domain, new Map());
- domains.get(domain).set(filter.selector, key);
- }
-
- return domains;
- },
-
/**
* Returns a list of selectors that apply on each website unconditionally.
* @returns {string[]}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld