Skip to content

Commit

Permalink
fixup after rebase
Browse files Browse the repository at this point in the history
- remove unused imports
- remove old refactor return types
  • Loading branch information
michaeldjeffrey committed May 6, 2024
1 parent a8fcb55 commit 90480d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
5 changes: 1 addition & 4 deletions boost_manager/tests/integrations/watcher_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ use crate::common::{self, MockFileSinkReceiver, MockHexBoostingClient};
use boost_manager::watcher::{self, Watcher};
use chrono::{Duration as ChronoDuration, Duration, Utc};
use helium_proto::BoostedHexInfoV1 as BoostedHexInfoProto;
use mobile_config::{
boosted_hex_info::{BoostedHexDeviceType, BoostedHexInfo, BoostedHexInfoStream},
client::{hex_boosting_client::HexBoostingInfoResolver, ClientError},
};
use mobile_config::boosted_hex_info::{BoostedHexDeviceType, BoostedHexInfo};
use solana_sdk::pubkey::Pubkey;
use sqlx::PgPool;
use std::{num::NonZeroU32, str::FromStr};
Expand Down
16 changes: 0 additions & 16 deletions mobile_config/src/boosted_hex_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,22 +285,6 @@ impl BoostedHexes {

self.hexes.entry(info.location).or_default().push(info);
}

pub fn count(&self) -> usize {
self.hexes.len()
}

pub fn iter_hexes(&self) -> impl Iterator<Item = &BoostedHexInfo> {
self.hexes.values()
}

pub fn get(&self, location: &Cell) -> Option<&BoostedHexInfo> {
self.hexes.get(location)
}

pub fn insert(&mut self, info: BoostedHexInfo) {
self.hexes.insert(info.location, info);
}
}

pub(crate) mod db {
Expand Down
5 changes: 1 addition & 4 deletions mobile_verifier/tests/integrations/hex_boosting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ use helium_proto::services::poc_mobile::{
UnallocatedReward,
};
use hextree::Cell;
use mobile_config::{
boosted_hex_info::{BoostedHexDeviceType, BoostedHexInfo, BoostedHexInfoStream},
client::{hex_boosting_client::HexBoostingInfoResolver, ClientError},
};
use mobile_config::boosted_hex_info::{BoostedHexDeviceType, BoostedHexInfo};
use mobile_verifier::{
cell_type::CellType,
coverage::{set_oracle_boosting_assignments, CoverageObject, UnassignedHex},
Expand Down

0 comments on commit 90480d1

Please sign in to comment.