mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Remove hash function
This commit is contained in:
parent
bfc5ac9435
commit
8b00a772cf
1 changed files with 0 additions and 6 deletions
|
|
@ -66,7 +66,6 @@ function getNonEnglishLanguages() {
|
||||||
return nonEnglishLanguages;
|
return nonEnglishLanguages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function eachTranslationFile(languages, cb) {
|
function eachTranslationFile(languages, cb) {
|
||||||
let jsonFiles = stripOutNonJsonFiles(fs.readdirSync(ENGLISH_LOCALE));
|
let jsonFiles = stripOutNonJsonFiles(fs.readdirSync(ENGLISH_LOCALE));
|
||||||
|
|
||||||
|
|
@ -126,11 +125,6 @@ function formatMessageForPosting(msg, items) {
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getHash(string) {
|
|
||||||
let hash = md5(`${string}:`);
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
function stripOutNonJsonFiles(collection) {
|
function stripOutNonJsonFiles(collection) {
|
||||||
let onlyJson = _.filter(collection, (file) => {
|
let onlyJson = _.filter(collection, (file) => {
|
||||||
return file.match(/[a-zA-Z]*\.json/);
|
return file.match(/[a-zA-Z]*\.json/);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue