Remove unused before_upload method

This commit is contained in:
Damien Elmes 2022-12-23 20:30:19 +10:00
parent 0570cfdf48
commit a82f8d6872
2 changed files with 3 additions and 6 deletions

View file

@ -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);
}

View file

@ -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)
}