You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by ms...@apache.org on 2020/01/07 07:35:21 UTC

[incubator-teaclave] 01/02: [services] Remove unneccessary code and dependencies

This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git

commit 974896fcb0345110590d8d25c1dc52b9e15003e5
Author: Mingshen Sun <bo...@mssun.me>
AuthorDate: Mon Jan 6 19:21:57 2020 -0800

    [services] Remove unneccessary code and dependencies
---
 rpc/Cargo.toml            |  2 --
 services/proto/src/lib.rs | 46 ----------------------------------------------
 2 files changed, 48 deletions(-)

diff --git a/rpc/Cargo.toml b/rpc/Cargo.toml
index 7f4674b..a780765 100644
--- a/rpc/Cargo.toml
+++ b/rpc/Cargo.toml
@@ -11,7 +11,6 @@ default = []
 mesalock_sgx = [
     "sgx_tstd",
     "teaclave_types/mesalock_sgx",
-    "teaclave_attestation/mesalock_sgx",
 ]
 
 [dependencies]
@@ -25,7 +24,6 @@ thiserror  = { version = "1.0.9" }
 threadpool = { version = "1.8.0" }
 webpki     = { version = "0.21.0" }
 
-teaclave_attestation = { path = "../attestation" }
 teaclave_types       = { path = "../types" }
 
 sgx_tstd = { version = "1.1.0", features = ["net", "backtrace"], optional = true }
diff --git a/services/proto/src/lib.rs b/services/proto/src/lib.rs
index 0251063..6879a3b 100644
--- a/services/proto/src/lib.rs
+++ b/services/proto/src/lib.rs
@@ -19,50 +19,4 @@
 #[cfg(feature = "mesalock_sgx")]
 extern crate sgx_tstd as std;
 
-// use anyhow::{Error, Result};
-
-// #[derive(serde_derive::Serialize, serde_derive::Deserialize, Debug)]
-// pub struct UserLoginRequest {
-//     pub id: std::string::String,
-//     pub password: std::string::String,
-// }
-
-// #[derive(serde_derive::Serialize, serde_derive::Deserialize, Debug)]
-// pub struct UserLoginResponse {
-//     pub token: std::string::String,
-// }
-
-// impl std::convert::TryFrom<proto::UserLoginRequest> for UserLoginRequest {
-//     type Error = Error;
-
-//     fn try_from(proto: crate::proto::UserLoginRequest) -> Result<Self> {
-//         let ret = Self {
-//             id: proto.id,
-//             password: proto.password,
-//         };
-
-//         Ok(ret)
-//     }
-// }
-
-// impl From<UserLoginRequest> for crate::proto::UserLoginRequest {
-//     fn from(request: UserLoginRequest) -> Self {
-//         Self {
-//             id: request.id,
-//             password: request.password,
-//         }
-//     }
-// }
-
-// impl From<UserLoginResponse> for crate::proto::UserLoginResponse {
-//     fn from(response: UserLoginResponse) -> Self {
-//         Self {
-//             token: response.token,
-//         }
-//     }
-// }
-
-// pub mod proto;
-// pub use proto::TeaclaveFrontend;
-
 pub mod teaclave_frontend;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org