From adf062c269ac72af4fdd04bcc9e4c636cbb77bfe Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 29 May 2022 22:27:57 +0000 Subject: [PATCH] cleanup --- src/entity/gateway/entitygateway.rs | 8 -------- src/entity/gateway/inmemory.rs | 8 -------- src/entity/item/mod.rs | 2 -- 3 files changed, 18 deletions(-) diff --git a/src/entity/gateway/entitygateway.rs b/src/entity/gateway/entitygateway.rs index c5edff7..68b3a84 100644 --- a/src/entity/gateway/entitygateway.rs +++ b/src/entity/gateway/entitygateway.rs @@ -134,12 +134,4 @@ pub trait EntityGateway: Send + Sync + Clone { async fn increment_kill_counter(&mut self, _item_entity_id: &ItemEntityId) -> Result<(), GatewayError> { unimplemented!(); } - - async fn get_kill_counter() { - unimplemented!(); - } - - async fn set_kill_counter() { - unimplemented!(); - } } diff --git a/src/entity/gateway/inmemory.rs b/src/entity/gateway/inmemory.rs index 8eaea02..24ba67b 100644 --- a/src/entity/gateway/inmemory.rs +++ b/src/entity/gateway/inmemory.rs @@ -356,12 +356,4 @@ impl EntityGateway for InMemoryGateway { } Ok(()) } - - async fn get_kill_counter() { - println!("src/entity/gateway/inmemory.rs::get_kill_counter() - unimplemented!"); - } - - async fn set_kill_counter() { - println!("src/entity/gateway/inmemory.rs::set_kill_counter() - unimplemented!"); - } } diff --git a/src/entity/item/mod.rs b/src/entity/item/mod.rs index 2c96e16..dae9f03 100644 --- a/src/entity/item/mod.rs +++ b/src/entity/item/mod.rs @@ -184,8 +184,6 @@ impl ItemDetail { } } - // TODO: delete this - // jk actually we need this pub fn increment_kill_counter(&mut self) { match self { ItemDetail::Weapon(w) => {w.increment_kill_counter()},