From ce511812d5586d8ff9a9c75d069e63b1a552a641 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Sun, 28 Feb 2021 10:29:50 +0200 Subject: [PATCH] feature(client) rm unused loadCurrentTime --- client/dom/index.js | 14 -------------- package.json | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/client/dom/index.js b/client/dom/index.js index f1dce437..38b6ddef 100644 --- a/client/dom/index.js +++ b/client/dom/index.js @@ -254,20 +254,6 @@ module.exports.loadCurrentHash = async (currentFile) => { return data; }; -/** - * load current modification time of file - * @callback - * @currentFile - */ -module.exports.loadCurrentTime = async (currentFile) => { - const current = currentFile || DOM.getCurrentFile(); - const query = '?time'; - const link = DOM.getCurrentPath(current); - - const [, data] = await RESTful.read(link + query); - return data; -}; - /** * set size * @currentFile diff --git a/package.json b/package.json index d9b39cc8..07313402 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "putout": "^15.0.0", "redzip": "^2.0.0", "rendy": "^3.0.0", - "restafary": "^9.7.0", + "restafary": "^10.0.0", "restbox": "^3.0.0", "shortdate": "^2.0.0", "simport": "^1.0.1",