Skip to content

Commit

Permalink
chore: remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
LechintanTudor committed Aug 30, 2024
1 parent d8a6872 commit 81a79ee
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/component/component_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ impl ComponentStorage {
}
}

pub fn register<T>(&mut self) -> bool
where
T: Component,
{
self.register_dyn(ComponentData::new::<T>())
}

pub fn register_dyn(&mut self, component: ComponentData) -> bool {
let Entry::Vacant(entry) = self.metadata.entry(component.type_id()) else {
return false;
Expand All @@ -136,14 +129,6 @@ impl ComponentStorage {
true
}

#[must_use]
pub fn is_registered<T>(&self) -> bool
where
T: Component,
{
self.is_registered_dyn(TypeId::of::<T>())
}

#[inline]
#[must_use]
pub fn is_registered_dyn(&self, type_id: TypeId) -> bool {
Expand Down

0 comments on commit 81a79ee

Please sign in to comment.