client/tags: remove unused cruft
This commit is contained in:
parent
36698cddc2
commit
4848bee5e3
3 changed files with 0 additions and 23 deletions
|
@ -5,10 +5,6 @@ const views = require('../util/views.js');
|
||||||
const TagList = require('../models/tag_list.js');
|
const TagList = require('../models/tag_list.js');
|
||||||
const AutoCompleteControl = require('./auto_complete_control.js');
|
const AutoCompleteControl = require('./auto_complete_control.js');
|
||||||
|
|
||||||
function _escapeSearch(text) {
|
|
||||||
return text.replace('\\', '\\\\').replace(':', '\\:');
|
|
||||||
}
|
|
||||||
|
|
||||||
function _tagListToMatches(tags, options) {
|
function _tagListToMatches(tags, options) {
|
||||||
return [...tags].sort((tag1, tag2) => {
|
return [...tags].sort((tag1, tag2) => {
|
||||||
return tag2.usages - tag1.usages;
|
return tag2.usages - tag1.usages;
|
||||||
|
|
|
@ -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 = {
|
module.exports = {
|
||||||
refreshCategoryColorMap: refreshCategoryColorMap,
|
refreshCategoryColorMap: refreshCategoryColorMap,
|
||||||
getAllImplications: getAllImplications,
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
const config = require('../config.js');
|
const config = require('../config.js');
|
||||||
const events = require('../events.js');
|
const events = require('../events.js');
|
||||||
const misc = require('../util/misc.js');
|
|
||||||
const views = require('../util/views.js');
|
const views = require('../util/views.js');
|
||||||
const TagAutoCompleteControl =
|
const TagAutoCompleteControl =
|
||||||
require('../controls/tag_auto_complete_control.js');
|
require('../controls/tag_auto_complete_control.js');
|
||||||
|
|
Loading…
Reference in a new issue