Skip to content

Commit

Permalink
remove the unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Jul 25, 2024
1 parent b407107 commit c9513a5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions iot_config/src/org.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ pub struct Org {
pub constraints: Option<Vec<DevAddrConstraint>>,
}

#[derive(Debug, Serialize)]
#[allow(dead_code)]
pub struct OrgList {
orgs: Vec<Org>,
}

impl FromRow<'_, PgRow> for Org {
fn from_row(row: &PgRow) -> sqlx::Result<Self> {
let delegate_keys = row
Expand Down
12 changes: 0 additions & 12 deletions iot_config/src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -849,18 +849,6 @@ async fn remove_skfs(skfs: &[Skf], db: impl sqlx::PgExecutor<'_>) -> anyhow::Res
Ok(query_builder.build_query_as::<Skf>().fetch_all(db).await?)
}

#[derive(Debug, Serialize)]
#[allow(dead_code)]
pub struct RouteList {
routes: Vec<Route>,
}

impl RouteList {
pub fn count(&self) -> usize {
self.routes.len()
}
}

impl From<proto::RouteV1> for Route {
fn from(route: proto::RouteV1) -> Self {
let net_id: NetIdField = route.net_id.into();
Expand Down

0 comments on commit c9513a5

Please sign in to comment.