diff --git a/app/lib/dal/fileDAL.js b/app/lib/dal/fileDAL.js index a361789c3febd33803afdbef4b696379ee70a71b..1e34ed1506a7e054bacf5a140355d5fa3825a5b2 100644 --- a/app/lib/dal/fileDAL.js +++ b/app/lib/dal/fileDAL.js @@ -1182,7 +1182,6 @@ function FileDAL(profile, home, localDir, myFS, parentFileDAL, dalName, loki) { this.loadStats = that.statDAL.loadStats; this.getStat = that.statDAL.getStat; - this.saveStat = that.statDAL.saveStat; this.pushStats = that.statDAL.pushStats; this.needsSave = function() { diff --git a/app/lib/dal/fileDALs/statDAL.js b/app/lib/dal/fileDALs/statDAL.js index 02f859607b9dea8b943dfe68ed34c30461fabf33..d4a4de9707ae1a8c8cad2aee945ea47f0af9a565 100644 --- a/app/lib/dal/fileDALs/statDAL.js +++ b/app/lib/dal/fileDALs/statDAL.js @@ -21,14 +21,6 @@ function StatDAL(rootPath, qioFS, parentCore, localDAL, AbstractStorage) { this.getStat = (statName) => that.loadStats().then((stats) => (stats && stats[statName]) || { statName: statName, blocks: [], lastParsedBlock: -1 }); - this.saveStat = (stat, name) => { - return co(function *() { - var stats = (yield that.loadStats()) || {}; - stats[name] = stat; - return that.coreFS.writeJSON('stats.json', stats); - }); - }; - this.pushStats = (statsToPush) => { return co(function *() { var stats = (yield that.loadStats()) || {};