Skip to content

Commit

Permalink
style: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascomj committed Mar 12, 2024
1 parent 4849d78 commit ca2eef2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/aesthetics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ pub struct Aesthetics {
pub condition: Option<String>,
}

#[derive(Component)]
pub struct Gx {}

#[derive(Component)]
pub struct Gy {}

Expand All @@ -59,8 +56,6 @@ pub struct Gy {}
pub struct Point<T>(pub Vec<T>);
#[derive(Component)]
pub struct Distribution<T>(pub Vec<Vec<T>>);
#[derive(Component)]
pub struct Categorical<T>(Vec<T>);

#[derive(Component)]
pub struct Gsize {}
Expand Down
4 changes: 4 additions & 0 deletions src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ impl<A> CustomAssetLoader<A> {
/// Enum to represent floats that may be NaN or Inf.
enum Number {
Num(f32),
#[allow(dead_code)]
// some libraries may use "NaN" or "Inf" as null in JSON we don't care about
// those values but still has to be as is since serde(other) is not possible
// for untagged enums.
Skip(String),
}

Expand Down

0 comments on commit ca2eef2

Please sign in to comment.