mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Remove hash function
This commit is contained in:
@@ -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/);
|
||||||
|
|||||||
Reference in New Issue
Block a user