Skip to content

Commit 72f2e70

Browse files
committed
Remove unused Process::contains_commodity_flow method
1 parent 10129db commit 72f2e70

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/process.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ pub struct Process {
4848
pub regions: HashSet<RegionID>,
4949
}
5050

51-
impl Process {
52-
/// Whether the process contains a flow for a given commodity
53-
pub fn contains_commodity_flow(
54-
&self,
55-
commodity_id: &CommodityID,
56-
region_id: &RegionID,
57-
year: u32,
58-
) -> bool {
59-
self.flows
60-
.get(&(region_id.clone(), year))
61-
.unwrap() // all regions and years are covered
62-
.contains_key(commodity_id)
63-
}
64-
}
65-
6651
/// Represents a maximum annual commodity coeff for a given process
6752
#[derive(PartialEq, Debug, Clone)]
6853
pub struct ProcessFlow {

0 commit comments

Comments
 (0)