We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Process::contains_commodity_flow
1 parent 10129db commit 72f2e70Copy full SHA for 72f2e70
1 file changed
src/process.rs
@@ -48,21 +48,6 @@ pub struct Process {
48
pub regions: HashSet<RegionID>,
49
}
50
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
-
66
/// Represents a maximum annual commodity coeff for a given process
67
#[derive(PartialEq, Debug, Clone)]
68
pub struct ProcessFlow {
0 commit comments