From 0fcc39b14a3c1940f9715d6006a0ab11989bbdd6 Mon Sep 17 00:00:00 2001 From: rascul Date: Wed, 22 Jun 2022 21:30:27 -0500 Subject: [PATCH] remove unused code --- src/wot_log.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/wot_log.rs b/src/wot_log.rs index 66a30d4..2044523 100644 --- a/src/wot_log.rs +++ b/src/wot_log.rs @@ -1,4 +1,4 @@ -use std::fs::{File, OpenOptions}; +use std::fs::OpenOptions; use std::io::Write; use std::path::PathBuf; @@ -37,18 +37,6 @@ pub struct WotLog { } impl WotLog { - fn generate_id() -> String { - let harsh = Harsh::default(); - let ts = Utc::now(); - harsh.encode(&[ts.timestamp_nanos() as u64]) - } - - pub fn new_id(&mut self) { - let harsh = Harsh::default(); - let ts = Utc::now(); - self.id = harsh.encode(&[ts.timestamp_nanos() as u64]) - } - pub fn new() -> Self { Self { client: Client::None,