Remove dead code

This commit is contained in:
Ethan O'Brien
2024-02-26 20:50:11 -06:00
parent 510b948bda
commit f6cf70ab9f
10 changed files with 22 additions and 37 deletions

View File

@ -6,10 +6,6 @@ use actix_web::{HttpResponse, HttpRequest, http::header::HeaderValue};
use crate::router::userdata;
pub fn guest(_req: HttpRequest, _body: String) -> HttpResponse {
//let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
//let blank_header = HeaderValue::from_static("");
//let key = req.headers().get("a6573cbe").unwrap_or(&blank_header).to_str().unwrap_or("");
//let user = userdata::get_acc(key, "");
let resp = object!{
"code": 0,
@ -33,9 +29,8 @@ pub fn end(req: HttpRequest, _body: String) -> HttpResponse {
//let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
let blank_header = HeaderValue::from_static("");
let key = req.headers().get("a6573cbe").unwrap_or(&blank_header).to_str().unwrap_or("");
let uid = req.headers().get("aoharu-user-id").unwrap_or(&blank_header).to_str().unwrap_or("");
let user = userdata::get_acc(key, uid);
let user2 = userdata::get_acc_home(key, uid);
let user = userdata::get_acc(key);
let user2 = userdata::get_acc_home(key);
let resp = object!{
"code": 0,