aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorrr-2017-10-01 22:02:49 +0200
committerrr-2017-10-01 22:09:00 +0200
commit4848bee5e39bb7ca7cd100054b9b296abb1b2905 (patch)
tree01b0fef12931d72f517953dd0fbf4c0297d611d9 /client
parent36698cddc2fa8cf16d40c20e8dc98ffb141d6493 (diff)
client/tags: remove unused cruft
Diffstat (limited to 'client')
-rw-r--r--client/js/controls/tag_auto_complete_control.js4
-rw-r--r--client/js/tags.js18
-rw-r--r--client/js/views/tag_merge_view.js1
3 files changed, 0 insertions, 23 deletions
diff --git a/client/js/controls/tag_auto_complete_control.js b/client/js/controls/tag_auto_complete_control.js
index b7dda20..3d9130e 100644
--- a/client/js/controls/tag_auto_complete_control.js
+++ b/client/js/controls/tag_auto_complete_control.js
@@ -5,10 +5,6 @@ const views = require('../util/views.js');
const TagList = require('../models/tag_list.js');
const AutoCompleteControl = require('./auto_complete_control.js');
-function _escapeSearch(text) {
- return text.replace('\\', '\\\\').replace(':', '\\:');
-}
-
function _tagListToMatches(tags, options) {
return [...tags].sort((tag1, tag2) => {
return tag2.usages - tag1.usages;
diff --git a/client/js/tags.js b/client/js/tags.js
index 8f83a42..c037f6f 100644
--- a/client/js/tags.js
+++ b/client/js/tags.js
@@ -21,24 +21,6 @@ function refreshCategoryColorMap() {
});
}
-function getAllImplications(tagName) {
- let implications = [];
- let check = [tagName];
- while (check.length) {
- let tagName = check.pop();
- const actualTag = getTagByName(tagName) || {};
- for (let implication of actualTag.implications || []) {
- if (implications.includes(implication)) {
- continue;
- }
- implications.push(implication);
- check.push(implication);
- }
- }
- return Array.from(implications);
-}
-
module.exports = {
refreshCategoryColorMap: refreshCategoryColorMap,
- getAllImplications: getAllImplications,
};
diff --git a/client/js/views/tag_merge_view.js b/client/js/views/tag_merge_view.js
index 9b49097..1228680 100644
--- a/client/js/views/tag_merge_view.js
+++ b/client/js/views/tag_merge_view.js
@@ -2,7 +2,6 @@
const config = require('../config.js');
const events = require('../events.js');
-const misc = require('../util/misc.js');
const views = require('../util/views.js');
const TagAutoCompleteControl =
require('../controls/tag_auto_complete_control.js');

© 2015 - 2026 Jakob L. Kreuze