Skip to content

Commit

Permalink
Remove redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
omurovch committed Jan 22, 2024
1 parent e5c5c4b commit 89b0576
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ class BlockchairApiSyncer(
}
}

override fun syncLastBlock() {
Single.create<Unit> { fetchLastBlock() }
.subscribeOn(Schedulers.io())
.observeOn(Schedulers.io())
.subscribe({}, {
handleError(it)
}).let {
disposables.add(it)
}
}

override fun terminate() {
disposables.clear()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class ApiSyncer(
disposables.add(disposable)
}

override fun syncLastBlock() {}

private fun handle(keys: List<PublicKey>, blockHashes: List<BlockHash>) {
publicKeyManager.addKeys(keys)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ interface IApiSyncer {
val willSync: Boolean

fun sync()
fun syncLastBlock()
fun terminate()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ class SyncManager(
val forceAddedBlocks = forceAddedBlocksTotal - storage.getApiBlockHashesCount()
syncState = when {
forceAddedBlocks >= forceAddedBlocksTotal -> {
apiSyncer.syncLastBlock()
KitState.Synced
}

Expand Down

0 comments on commit 89b0576

Please sign in to comment.