diff options
author | Yigit Sever | 2021-04-15 03:40:20 +0300 |
---|---|---|
committer | Yigit Sever | 2021-04-15 03:40:20 +0300 |
commit | 75c7ae50a3f8464039122c8f5c1d3f737eacbc34 (patch) | |
tree | 021ed7f95a5ee07b02cdf8cb980a9c36c1aeec1c /src/handlers.rs | |
parent | 69f25e23feb3960a6cc3fc5d410533877b53a0fb (diff) | |
download | gradecoin-75c7ae50a3f8464039122c8f5c1d3f737eacbc34.tar.gz gradecoin-75c7ae50a3f8464039122c8f5c1d3f737eacbc34.tar.bz2 gradecoin-75c7ae50a3f8464039122c8f5c1d3f737eacbc34.zip |
shed unused function
Diffstat (limited to 'src/handlers.rs')
-rw-r--r-- | src/handlers.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/handlers.rs b/src/handlers.rs index b3a6fa8..7135190 100644 --- a/src/handlers.rs +++ b/src/handlers.rs | |||
@@ -194,17 +194,6 @@ pub async fn authenticate_user( | |||
194 | Ok(warp::reply::with_status(res_json, StatusCode::CREATED)) | 194 | Ok(warp::reply::with_status(res_json, StatusCode::CREATED)) |
195 | } | 195 | } |
196 | 196 | ||
197 | // fn shed_pem_header_footer(maybe_key: String) -> Result<Vec<u8>, String> { | ||
198 | // let der_encoded = maybe_key | ||
199 | // .lines() | ||
200 | // .filter(|line| !line.starts_with("-")) | ||
201 | // .fold(String::new(), |mut data, line| { | ||
202 | // data.push_str(&line); | ||
203 | // data | ||
204 | // }); | ||
205 | // Ok(base64::decode(&der_encoded).expect("failed to decode base64 content")) | ||
206 | // } | ||
207 | |||
208 | /// GET /transaction | 197 | /// GET /transaction |
209 | /// Returns JSON array of transactions | 198 | /// Returns JSON array of transactions |
210 | /// Cannot fail | 199 | /// Cannot fail |