summary refs log tree commit diff
path: root/src/rustc
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-10 17:42:53 -0800
committerBrian Anderson <banderson@mozilla.com>2012-03-10 17:43:19 -0800
commit91e5a1c8b3c56979b0d7025e83dc378f3d05b208 (patch)
tree95c31beaa7f2bb39f6306c6555e92173237bb2e0 /src/rustc
parent035197609a7f5c604797e5fbbdc6e14c579a026f (diff)
downloadrust-91e5a1c8b3c56979b0d7025e83dc378f3d05b208.tar.gz
rust-91e5a1c8b3c56979b0d7025e83dc378f3d05b208.zip
core: Remove the nearly empty math module
This mod only had two functions, all of whose users have been changed
to use the uint module.
Diffstat (limited to 'src/rustc')
-rw-r--r--src/rustc/back/rpath.rs2
-rw-r--r--src/rustc/middle/ty.rs2
-rw-r--r--src/rustc/util/common.rs1
3 files changed, 2 insertions, 3 deletions
diff --git a/src/rustc/back/rpath.rs b/src/rustc/back/rpath.rs
index eef999a9571..cfe3e63c4e2 100644
--- a/src/rustc/back/rpath.rs
+++ b/src/rustc/back/rpath.rs
@@ -129,7 +129,7 @@ fn get_relative_to(abs1: fs::path, abs2: fs::path) -> fs::path {
     assert len1 > 0u;
     assert len2 > 0u;
 
-    let max_common_path = math::min(len1, len2) - 1u;
+    let max_common_path = uint::min(len1, len2) - 1u;
     let start_idx = 0u;
     while start_idx < max_common_path
         && split1[start_idx] == split2[start_idx] {
diff --git a/src/rustc/middle/ty.rs b/src/rustc/middle/ty.rs
index dc6053ad73d..ea8de5b8b77 100644
--- a/src/rustc/middle/ty.rs
+++ b/src/rustc/middle/ty.rs
@@ -1568,7 +1568,7 @@ mod unify {
             _ { cx.tcx.sess.bug("someone forgot to document an invariant \
                          in union"); }
         };
-        ufind::grow(vb.sets, math::max(set_a, set_b) + 1u);
+        ufind::grow(vb.sets, uint::max(set_a, set_b) + 1u);
         let root_a = ufind::find(vb.sets, set_a);
         let root_b = ufind::find(vb.sets, set_b);
 
diff --git a/src/rustc/util/common.rs b/src/rustc/util/common.rs
index cd45deb9423..12bf9d6b960 100644
--- a/src/rustc/util/common.rs
+++ b/src/rustc/util/common.rs
@@ -1,4 +1,3 @@
-import math::{max, min};
 import std::map::hashmap;
 import syntax::ast;
 import ast::{ty, pat};