Skip to content

Commit

Permalink
Remove residual default port utility functions, which are no longer n…
Browse files Browse the repository at this point in the history
…eeded after models restructuring
  • Loading branch information
ndebuhr committed Jun 24, 2021
1 parent e37dbab commit 02d21a0
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions sim/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,6 @@ pub fn usize_sqrt(n: usize) -> usize {
x
}

/// Populate a snapshot metrics port specification with either a None (if the
/// snapshot metrics are not required) or the default Some("snapshot") (if
/// snapshot metrics are required)
pub fn populate_snapshot_port(snapshot_metrics: bool) -> Option<String> {
if snapshot_metrics {
Some(String::from("snapshot"))
} else {
None
}
}

/// Populate a history metrics port specification with either a None (if the
/// history metrics are not required) or the default Some("history") (if
/// history metrics are required)
pub fn populate_history_port(history_metrics: bool) -> Option<String> {
if history_metrics {
Some(String::from("history"))
} else {
None
}
}

/// Provides a centralized default name for records ports
pub fn default_records_port_name() -> String {
String::from("records")
Expand Down

0 comments on commit 02d21a0

Please sign in to comment.