summaryrefslogtreecommitdiff
path: root/cli/global_timer.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-18 20:39:47 +0200
committerGitHub <noreply@github.com>2020-09-18 20:39:47 +0200
commitf44522eac9c9f13835d4df62135bb5728a000239 (patch)
tree1c7eb59691e1ffbf8b1620bd34227fa25033ff78 /cli/global_timer.rs
parent4fcfff0393a90bef6313df2c8895cd285da29440 (diff)
refactor: move fields from CliState to OpState (#7558)
- move rng to OpState - move GlobalTimer to OpState - move Metrics to OpState
Diffstat (limited to 'cli/global_timer.rs')
-rw-r--r--cli/global_timer.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/cli/global_timer.rs b/cli/global_timer.rs
index 1870ebd54..bf335bff0 100644
--- a/cli/global_timer.rs
+++ b/cli/global_timer.rs
@@ -20,10 +20,6 @@ pub struct GlobalTimer {
}
impl GlobalTimer {
- pub fn new() -> Self {
- Self { tx: None }
- }
-
pub fn cancel(&mut self) {
if let Some(tx) = self.tx.take() {
tx.send(()).ok();