mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(client) rm unused loadCurrentTime
This commit is contained in:
parent
89af33fb9d
commit
ce511812d5
2 changed files with 1 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue