Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
bgkillas committed Jan 16, 2025
1 parent c5edb7a commit 11a9bc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ewext/noita_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl EntityID {
pub fn is_alive(self) -> bool {
raw::entity_get_is_alive(self).unwrap_or(false)
}

pub fn name(self) -> eyre::Result<String> {
raw::entity_get_name(self).map(|s| s.to_string())
}
Expand Down Expand Up @@ -382,7 +382,7 @@ impl ComponentID {
self, object, key, value)?;
Ok(())
}

pub fn stain_effects(self) -> eyre::Result<Vec<f32>> {
raw::component_get_value(self, "stain_effects")
}
Expand Down Expand Up @@ -460,7 +460,7 @@ pub mod raw {
Ok(())
}


pub fn physics_body_id_get_transform(body: PhysicsBodyID) -> eyre::Result<Option<PhysData>> {
let lua = LuaState::current()?;
lua.get_global(c"PhysicsBodyIDGetTransform");
Expand Down
3 changes: 0 additions & 3 deletions ewext/noita_api_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ enum Typ {
StdString,
#[serde(rename = "vec2")]
Vec2,
#[serde(rename = "vec_float")]
VectorFloat,
EntityID,
#[serde(rename = "int64")]
Int64,
Expand All @@ -42,7 +40,6 @@ impl Typ {
Typ::Bool => quote!(bool),
Typ::StdString => quote!(Cow<'_, str>),
Typ::Vec2 => quote! {(f32, f32)},
Typ::VectorFloat => quote! {Vec<f32>},
Typ::EntityID => quote! { Option<EntityID> },
Typ::Int64 => quote! { i64 },
Typ::GameEffectEnum => quote! { GameEffectEnum },
Expand Down

0 comments on commit 11a9bc9

Please sign in to comment.