Skip to content

Commit 653b9eb

Browse files
committed
fix: Remove continuation methods from {Browser,Native}AccountStorage
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 8cfdf8c commit 653b9eb

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

src/lib/browser/BrowserAccountStorage.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,4 @@ export default class BrowserAccountStorage {
160160
async deleteMappings() {
161161
await BrowserAccountStorage.deleteEntry(`bookmarks[${this.accountId}].mappings`)
162162
}
163-
164-
async getCurrentContinuation() {
165-
return BrowserAccountStorage.getEntry(`bookmarks[${this.accountId}].continuation`)
166-
}
167-
168-
async setCurrentContinuation(continuation) {
169-
await BrowserAccountStorage.changeEntry(`bookmarks[${this.accountId}].continuation`, (_) => ({...continuation, createdAt: Date.now()}), null)
170-
}
171163
}

src/lib/interfaces/AccountStorage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Mappings from '../Mappings'
22
import { Folder, ItemLocation } from '../Tree'
3-
import { ISerializedSyncProcess } from '../strategies/Default'
43

54
export type TAccountStrategy = 'default' | 'overwrite' | 'slave'
65

src/lib/native/NativeAccountStorage.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,4 @@ export default class NativeAccountStorage {
160160
async deleteMappings() {
161161
await NativeAccountStorage.deleteEntry(`bookmarks[${this.accountId}].mappings`)
162162
}
163-
164-
async getCurrentContinuation() {
165-
return NativeAccountStorage.getEntry(`bookmarks[${this.accountId}].continuation`)
166-
}
167-
168-
async setCurrentContinuation(continuation) {
169-
await NativeAccountStorage.changeEntry(`bookmarks[${this.accountId}].continuation`, (_) => continuation, null)
170-
}
171163
}

0 commit comments

Comments
 (0)