Skip to content

Commit

Permalink
clean up dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Crossley <[email protected]>
  • Loading branch information
jcrossley3 committed Feb 21, 2024
1 parent a94f459 commit d4299b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
15 changes: 3 additions & 12 deletions vexination/walker/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(unused_imports)]
use std::{
path::PathBuf,
process::ExitCode,
str::FromStr,
time::{Duration, SystemTime},
};

use prometheus::Registry;
use std::{path::PathBuf, process::ExitCode, time::SystemTime};

use time::{Date, Month, UtcOffset};
use trustification_auth::client::OpenIdTokenProviderConfigArguments;
use trustification_infrastructure::{Infrastructure, InfrastructureConfig};
Expand Down Expand Up @@ -81,7 +72,7 @@ impl Run {
.run(
"vexination-walker",
|_context| async { Ok(()) },
|context| async move {
|_context| async move {
let provider = self.oidc.clone().into_provider_or_devmode(self.devmode).await?;

let validation_date: Option<SystemTime> = match (self.policy_date, self.v3_signatures) {
Expand Down
14 changes: 3 additions & 11 deletions vexination/walker/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
use std::collections::BTreeMap;
use std::path::PathBuf;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use std::time::SystemTime;
use std::{net::SocketAddr, sync::Arc, time::Duration};

use csaf_walker::discover::AsDiscovered;
use csaf_walker::model::metadata::Distribution;
use csaf_walker::report::{render_to_html, DocumentKey, Duplicates, ReportRenderOption, ReportResult};
use csaf_walker::visitors::duplicates::DetectDuplicatesVisitor;
use csaf_walker::visitors::filter::{FilterConfig, FilteringVisitor};
use csaf_walker::{
discover::DiscoveredAdvisory,
retrieve::{RetrievedAdvisory, RetrievingVisitor},
retrieve::RetrievingVisitor,
source::{FileSource, HttpSource},
validation::{ValidatedAdvisory, ValidationError, ValidationVisitor},
verification::{
Expand All @@ -21,16 +20,9 @@ use csaf_walker::{
walker::Walker,
};
use reqwest::{header, StatusCode};
use serde::Deserialize;
use tokio::sync::{Mutex, RwLock};
use trustification_auth::client::{TokenInjector, TokenProvider};
use url::Url;
use walker_common::{
fetcher::{Fetcher, FetcherOptions},
since::Since,
utils::url::Urlify,
validate::ValidationOptions,
};
use walker_common::{fetcher::Fetcher, since::Since, utils::url::Urlify, validate::ValidationOptions};

#[allow(clippy::too_many_arguments)]
pub async fn run(
Expand Down

0 comments on commit d4299b3

Please sign in to comment.