clean up some unused code (#327)

This commit is contained in:
Carson McManus 2023-09-28 18:06:51 -04:00 committed by GitHub
parent 0c256a0e05
commit c809d1e725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View file

@ -4,7 +4,6 @@ pub mod twofactor;
use crate::transport::Transport; use crate::transport::Transport;
use crate::{protobufs::service_twofactor::CTwoFactor_Time_Response, token::Jwt}; use crate::{protobufs::service_twofactor::CTwoFactor_Time_Response, token::Jwt};
use reqwest::Url;
use serde::Deserialize; use serde::Deserialize;
pub use self::authentication::AuthenticationClient; pub use self::authentication::AuthenticationClient;
@ -12,7 +11,6 @@ pub use self::phone::PhoneClient;
pub use self::twofactor::TwoFactorClient; pub use self::twofactor::TwoFactorClient;
lazy_static! { lazy_static! {
static ref STEAM_COOKIE_URL: Url = "https://steamcommunity.com".parse::<Url>().unwrap();
static ref STEAM_API_BASE: String = "https://api.steampowered.com".into(); static ref STEAM_API_BASE: String = "https://api.steampowered.com".into();
} }

View file

@ -1,15 +1,10 @@
use log::{debug, trace}; use log::{debug, trace};
use protobuf::MessageFull; use protobuf::MessageFull;
use reqwest::{blocking::multipart::Form, Url}; use reqwest::blocking::multipart::Form;
use super::{Transport, TransportError}; use super::{Transport, TransportError};
use crate::steamapi::{ApiRequest, ApiResponse, BuildableRequest, EResult}; use crate::steamapi::{ApiRequest, ApiResponse, BuildableRequest, EResult};
lazy_static! {
static ref STEAM_COOKIE_URL: Url = "https://steamcommunity.com".parse::<Url>().unwrap();
static ref STEAM_API_BASE: String = "https://api.steampowered.com".into();
}
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct WebApiTransport { pub struct WebApiTransport {
client: reqwest::blocking::Client, client: reqwest::blocking::Client,