client/tags: remove unused cruft

This commit is contained in:
rr- 2017-10-01 22:02:49 +02:00
parent 36698cddc2
commit 4848bee5e3
3 changed files with 0 additions and 23 deletions

View file

@ -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;

View file

@ -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,
};

View file

@ -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');