Skip to content

Commit 0196f8a

Browse files
author
Oscar Otero
committed
removed unused code
1 parent a7eec51 commit 0196f8a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/translator.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export default class Translator {
33
this.dictionary = {};
44
this.plurals = {};
55
this.domain = undefined;
6-
this.vsprintf = undefined;
76

87
if (translations) {
98
this.loadTranslations(translations);
@@ -188,22 +187,3 @@ function mergeTranslations(translations, newTranslations) {
188187
}
189188
}
190189
}
191-
192-
function vsprintf(string, args) {
193-
const replace = [].concat(args || []);
194-
195-
return string.replace(/(%[sd])/g, function(match) {
196-
console.log(replace);
197-
if (!replace.length) {
198-
return match;
199-
}
200-
201-
if (match === '%s') {
202-
return replace.shift();
203-
}
204-
205-
if (match === '%d') {
206-
return ParseFloat(replace.shift());
207-
}
208-
});
209-
}

0 commit comments

Comments
 (0)