Skip to content

Commit ca05f69

Browse files
committed
Remove unused Float::is_sign_negative trait method
warning: method `is_sign_negative` is never used --> src/lexical/num.rs:251:8 | 175 | pub trait Float: Number { | ----- method in this trait ... 251 | fn is_sign_negative(self) -> bool; | ^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default
1 parent 09d865b commit ca05f69

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/lexical/num.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ pub trait Float: Number {
248248
fn from_bits(u: Self::Unsigned) -> Self;
249249
fn to_bits(self) -> Self::Unsigned;
250250
fn is_sign_positive(self) -> bool;
251-
fn is_sign_negative(self) -> bool;
252251

253252
/// Returns true if the float is a denormal.
254253
#[inline]
@@ -368,11 +367,6 @@ impl Float for f32 {
368367
fn is_sign_positive(self) -> bool {
369368
f32::is_sign_positive(self)
370369
}
371-
372-
#[inline]
373-
fn is_sign_negative(self) -> bool {
374-
f32::is_sign_negative(self)
375-
}
376370
}
377371

378372
impl Float for f64 {
@@ -432,9 +426,4 @@ impl Float for f64 {
432426
fn is_sign_positive(self) -> bool {
433427
f64::is_sign_positive(self)
434428
}
435-
436-
#[inline]
437-
fn is_sign_negative(self) -> bool {
438-
f64::is_sign_negative(self)
439-
}
440429
}

0 commit comments

Comments
 (0)