1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-26 18:58:21 +02:00

Removed uneeded code

This commit is contained in:
Laurent Cozic 2018-01-22 19:06:50 +00:00
parent 5b99ecefca
commit 7bee25599d

View File

@ -47,52 +47,15 @@ class FileApiDriverWebDav {
}
async setTimestamp(path, timestampMs) {
throw new Error('Not implemented'); // Not needed anymore
}
async delta(path, options) {
// const itemIds = await options.allItemIdsHandler();
// try {
// const stats = await this.fsDriver().readDirStats(path);
// let output = this.metadataFromStats_(stats);
// if (!Array.isArray(itemIds)) throw new Error('Delta API not supported - local IDs must be provided');
// let deletedItems = [];
// for (let i = 0; i < itemIds.length; i++) {
// const itemId = itemIds[i];
// let found = false;
// for (let j = 0; j < output.length; j++) {
// const item = output[j];
// if (BaseItem.pathToId(item.path) == itemId) {
// found = true;
// break;
// }
// }
// if (!found) {
// deletedItems.push({
// path: BaseItem.systemPath(itemId),
// isDeleted: true,
// });
// }
// }
// output = output.concat(deletedItems);
// return {
// hasMore: false,
// context: null,
// items: output,
// };
// } catch(error) {
// throw this.fsErrorToJsError_(error, path);
// }
}
async list(path, options) {
throw new Error('Not implemented'); // Not needed
}
async get(path, options) {