Skip to content

Commit

Permalink
Whoops, clean up unused imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Apr 15, 2024
1 parent 8e48b8a commit 6297cb8
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 13 deletions.
5 changes: 1 addition & 4 deletions crates/rand/src/instance/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ use super::INSTANCES;
use crate::shared;
use aneri_core::ByondSlotKey;
use rand::{
distributions::{
uniform::{SampleRange, SampleUniform},
Distribution, Standard,
},
distributions::{Distribution, Standard},
Rng,
};

Expand Down
4 changes: 0 additions & 4 deletions crates/rand/src/instance/pick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ use super::INSTANCES;
use crate::shared;
use aneri_core::ByondSlotKey;
use meowtonin::{ByondResult, ByondValue};
use rand::{
distributions::{Distribution, WeightedIndex},
Rng,
};

#[byond_fn]
pub fn instanced_pick(src: ByondSlotKey, options: ByondValue) -> ByondResult<Option<ByondValue>> {
Expand Down
2 changes: 0 additions & 2 deletions crates/rand/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pub mod global;
pub mod instance;
pub mod shared;

pub(crate) use instance::dispatcher::RngDispatcher;

pub fn cleanup() {
global::reseed_global_rng();
instance::free_instances();
Expand Down
1 change: 0 additions & 1 deletion crates/rand/src/shared/number.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MPL-2.0
use crate::RngDispatcher;
use rand::Rng;

pub(crate) fn random_range_int_unsigned<Gen>(rng: &mut Gen, mut min: u32, mut max: u32) -> u32
Expand Down
1 change: 0 additions & 1 deletion crates/rand/src/shared/pick.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MPL-2.0
use crate::RngDispatcher;
use meowtonin::{ByondResult, ByondValue};
use rand::{
distributions::{Distribution, WeightedIndex},
Expand Down
1 change: 0 additions & 1 deletion crates/rand/src/shared/prob.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// SPDX-License-Identifier: MPL-2.0
use crate::RngDispatcher;
use rand::Rng;

pub(crate) fn prob<Gen>(rng: &mut Gen, probability: f64) -> bool
Expand Down

0 comments on commit 6297cb8

Please sign in to comment.