Browse Source

cleanup

kill_counters
andy 3 years ago
parent
commit
adf062c269
  1. 8
      src/entity/gateway/entitygateway.rs
  2. 8
      src/entity/gateway/inmemory.rs
  3. 2
      src/entity/item/mod.rs

8
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> { async fn increment_kill_counter(&mut self, _item_entity_id: &ItemEntityId) -> Result<(), GatewayError> {
unimplemented!(); unimplemented!();
} }
async fn get_kill_counter() {
unimplemented!();
}
async fn set_kill_counter() {
unimplemented!();
}
} }

8
src/entity/gateway/inmemory.rs

@ -356,12 +356,4 @@ impl EntityGateway for InMemoryGateway {
} }
Ok(()) 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!");
}
} }

2
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) { pub fn increment_kill_counter(&mut self) {
match self { match self {
ItemDetail::Weapon(w) => {w.increment_kill_counter()}, ItemDetail::Weapon(w) => {w.increment_kill_counter()},

Loading…
Cancel
Save