summary refs log tree commit diff
path: root/src/libcore/hashmap.rs
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-01-24 11:47:00 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-01-24 13:36:04 -0500
commitacde90dc1c5d13ccfd24703bddc1e2df4a52ae58 (patch)
treef87866111f70aae319f4ec9124aeb9b352ee4a3a /src/libcore/hashmap.rs
parente8f4da78e78238d7a24dc452302a4c1f113f0e2a (diff)
remove old LinearMap constructor
Diffstat (limited to 'src/libcore/hashmap.rs')
-rw-r--r--src/libcore/hashmap.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libcore/hashmap.rs b/src/libcore/hashmap.rs
index 40b80bddf84..2d3eb4de4d4 100644
--- a/src/libcore/hashmap.rs
+++ b/src/libcore/hashmap.rs
@@ -60,10 +60,6 @@ pub mod linear {
         ((capacity as float) * 3. / 4.) as uint
     }
 
-    pub fn LinearMap<K:Eq Hash,V>() -> LinearMap<K,V> {
-        linear_map_with_capacity(INITIAL_CAPACITY)
-    }
-
     pub fn linear_map_with_capacity<K:Eq Hash,V>(
         initial_capacity: uint) -> LinearMap<K,V> {
         let r = rand::Rng();
@@ -351,7 +347,7 @@ pub mod linear {
         }
     }
 
-    impl<K:Hash IterBytes Eq,V> LinearMap<K,V> {
+    pub impl<K:Hash IterBytes Eq,V> LinearMap<K,V> {
         static fn new() -> LinearMap<K, V> {
             linear_map_with_capacity(INITIAL_CAPACITY)
         }
@@ -495,7 +491,7 @@ pub mod linear {
 
     pub impl <T: Hash IterBytes Eq> LinearSet<T> {
         /// Create an empty LinearSet
-        static fn new() -> LinearSet<T> { LinearSet{map: LinearMap()} }
+        static fn new() -> LinearSet<T> { LinearSet{map: LinearMap::new()} }
     }
 }