summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYigit Sever2021-04-15 03:40:20 +0300
committerYigit Sever2021-04-15 03:40:20 +0300
commitca9146db3670cac5a82a3b89b998eee12ff27b44 (patch)
tree4fa4e6ed4b0052fd304ada28d0a836bf5723609c /src
parent376ec590ea5da21315a37292817997352e58dee6 (diff)
downloadgradecoin-ca9146db3670cac5a82a3b89b998eee12ff27b44.tar.gz
gradecoin-ca9146db3670cac5a82a3b89b998eee12ff27b44.tar.bz2
gradecoin-ca9146db3670cac5a82a3b89b998eee12ff27b44.zip
shed unused function
Diffstat (limited to 'src')
-rw-r--r--src/handlers.rs11
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