Removing duplicate joinPath

This commit is contained in:
Alex Shpak 2017-04-11 01:34:59 +02:00
parent 17c0bd7b25
commit 12603ff2ab
2 changed files with 3 additions and 6 deletions

View File

@ -35,6 +35,9 @@ const Launcher = {
getWorkDirPath: function(fileName) {
return this.getDataPath(fileName).join('/');
},
joinPath: function(...parts) {
return [...parts].join('/');
},
writeFile: function(path, data, callback) {
const writeFile = fileEntry => {
fileEntry.createWriter(fileWriter => {
@ -112,9 +115,6 @@ const Launcher = {
file: parts.join('/')
};
},
joinPath: function(dir, fileName) {
return [dir, fileName].join('/');
},
createFsWatcher: function(path) {
return null; // not in android with content provider
},

View File

@ -119,9 +119,6 @@ const Launcher = {
file: path.basename(fileName)
};
},
joinPath: function(dir, fileName) {
return this.req('path').join(dir, fileName);
},
createFsWatcher: function(path) {
return this.req('fs').watch(path, { persistent: false });
},