mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Remove unused before_upload method
This commit is contained in:
parent
0570cfdf48
commit
a82f8d6872
2 changed files with 3 additions and 6 deletions
|
@ -11,14 +11,15 @@ import "anki/generic.proto";
|
|||
|
||||
service SyncService {
|
||||
rpc SyncMedia(SyncAuth) returns (generic.Empty);
|
||||
rpc AbortSync(generic.Empty) returns (generic.Empty);
|
||||
rpc AbortMediaSync(generic.Empty) returns (generic.Empty);
|
||||
rpc BeforeUpload(generic.Empty) returns (generic.Empty);
|
||||
|
||||
rpc SyncLogin(SyncLoginRequest) returns (SyncAuth);
|
||||
rpc SyncStatus(SyncAuth) returns (SyncStatusResponse);
|
||||
rpc SyncCollection(SyncAuth) returns (SyncCollectionResponse);
|
||||
rpc FullUpload(SyncAuth) returns (generic.Empty);
|
||||
rpc FullDownload(SyncAuth) returns (generic.Empty);
|
||||
rpc AbortSync(generic.Empty) returns (generic.Empty);
|
||||
|
||||
rpc SyncServerMethod(SyncServerMethodRequest) returns (generic.Json);
|
||||
}
|
||||
|
||||
|
|
|
@ -99,10 +99,6 @@ impl SyncService for Backend {
|
|||
Ok(().into())
|
||||
}
|
||||
|
||||
fn before_upload(&self, _input: pb::generic::Empty) -> Result<pb::generic::Empty> {
|
||||
self.with_col(|col| col.before_upload().map(Into::into))
|
||||
}
|
||||
|
||||
fn sync_login(&self, input: pb::sync::SyncLoginRequest) -> Result<pb::sync::SyncAuth> {
|
||||
self.sync_login_inner(input)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue