From 1f2de7ef4c43602eff082bb931228bae352d2e5e Mon Sep 17 00:00:00 2001 From: julian warszawski Date: Fri, 29 Mar 2024 10:58:29 -0700 Subject: [PATCH] clean up dead code --- libsql-server/src/auth/parsers.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libsql-server/src/auth/parsers.rs b/libsql-server/src/auth/parsers.rs index 208a5e3864..dbae78cf17 100644 --- a/libsql-server/src/auth/parsers.rs +++ b/libsql-server/src/auth/parsers.rs @@ -1,4 +1,4 @@ -use crate::auth::{constants::GRPC_AUTH_HEADER, AuthError}; +use crate::auth::AuthError; use anyhow::{bail, Context as _, Result}; use axum::http::HeaderValue; @@ -40,11 +40,6 @@ pub(crate) fn parse_grpc_auth_header( metadata: &MetadataMap, required_fields: &Vec, ) -> UserAuthContext { - // let mut context = metadata - // .get(GRPC_AUTH_HEADER) - // .ok_or(AuthError::AuthHeaderNotFound) - // .and_then(|h| h.to_str().map_err(|_| AuthError::AuthHeaderNonAscii)) - // .and_then(|t| UserAuthContext::from_auth_str(t)); let mut context = UserAuthContext::empty(); for field in required_fields.iter() { metadata