Remove unused dictRowsSort

This commit is contained in:
toasted-nutbread 2020-02-15 15:01:44 -05:00
parent cc2e21cd86
commit 1c828d205c

View File

@ -42,20 +42,6 @@ function dictConfigured(options) {
return false; return false;
} }
function dictRowsSort(rows, options) {
return rows.sort((ra, rb) => {
const pa = (options.dictionaries[ra.title] || {}).priority || 0;
const pb = (options.dictionaries[rb.title] || {}).priority || 0;
if (pa > pb) {
return -1;
} else if (pa < pb) {
return 1;
} else {
return 0;
}
});
}
function dictTermsSort(definitions, dictionaries=null) { function dictTermsSort(definitions, dictionaries=null) {
return definitions.sort((v1, v2) => { return definitions.sort((v1, v2) => {
let i; let i;