diff --git a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs --- a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs +++ b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs @@ -98,12 +98,6 @@ } } -#[derive(Debug)] -enum AuthType { - Password = 0, - Wallet = 1, -} - #[derive(Debug)] struct Client { identity_client: IdentityServiceClient<Channel>, @@ -636,21 +630,6 @@ } } -struct RegistrationResponseAndSender { - response: Option<RegistrationResponseMessage>, - sender: mpsc::Sender<RegistrationRequest>, -} - -struct LoginResponseAndSender { - response: Option<LoginResponse>, - sender: mpsc::Sender<LoginRequest>, -} - -enum ResponseAndSender { - Registration(RegistrationResponseAndSender), - Login(LoginResponseAndSender), -} - async fn send_to_mpsc<T>( tx: mpsc::Sender<T>, request: T,