Skip to content

Commit d63757c

Browse files
committed
Auto merge of #165 - rust-lang-nursery:fix-warnings, r=japaric
remove unused macros to fix warnings
2 parents f3ace11 + b2f72e1 commit d63757c

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

src/float/conv.rs

-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
use float::Float;
22
use int::Int;
33

4-
macro_rules! fp_overflow {
5-
(infinity, $fty:ty, $sign: expr) => {
6-
return {
7-
<$fty as Float>::from_parts(
8-
$sign,
9-
<$fty as Float>::exponent_max() as <$fty as Float>::Int,
10-
0 as <$fty as Float>::Int)
11-
}
12-
}
13-
}
14-
154
macro_rules! int_to_float {
165
($intrinsic:ident: $ity:ty, $fty:ty) => {
176
int_to_float!($intrinsic: $ity, $fty, "C");

src/lib.rs

-15
Original file line numberDiff line numberDiff line change
@@ -78,21 +78,6 @@ macro_rules! urem {
7878
}
7979
}
8080

81-
macro_rules! srem {
82-
($sty:ty, $a:expr, $b:expr) => {
83-
unsafe {
84-
let a = $a;
85-
let b = $b;
86-
87-
if b == 0 || (b == -1 && a == $sty::min_value()) {
88-
::core::intrinsics::abort()
89-
} else {
90-
::core::intrinsics::unchecked_rem(a, b)
91-
}
92-
}
93-
}
94-
}
95-
9681
// Hack for LLVM expectations for ABI on windows
9782
#[cfg(all(windows, target_pointer_width="64"))]
9883
#[repr(simd)]

0 commit comments

Comments
 (0)