remove dead code

This commit is contained in:
Lev Kokotov
2023-04-28 18:08:20 -07:00
parent d660e3e565
commit a514dbc187

View File

@@ -15,12 +15,6 @@ use tokio_rustls::TlsAcceptor;
use crate::config::get_config;
use crate::errors::Error;
impl From<std::io::Error> for Error {
fn from(err: std::io::Error) -> Error {
Error::TlsCertificateReadError(err.to_string())
}
}
// TLS
pub fn load_certs(path: &Path) -> std::io::Result<Vec<Certificate>> {
certs(&mut std::io::BufReader::new(std::fs::File::open(path)?))