summaryrefslogtreecommitdiff
path: root/src/maps/hmap.tmpl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:47 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:47 +0200
commitd4c9f10efe815af146438cafb694d16da0e5650a (patch)
tree93956195c448768b2d58892cb672bee36a6a6463 /src/maps/hmap.tmpl
parentee315a27b72dc967a8a90f132725b7c8e4fd9fba (diff)
tagging ychat-0.7.0ychat-0.7.0
Diffstat (limited to 'src/maps/hmap.tmpl')
-rw-r--r--src/maps/hmap.tmpl15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/maps/hmap.tmpl b/src/maps/hmap.tmpl
index cc2ec24..10facac 100644
--- a/src/maps/hmap.tmpl
+++ b/src/maps/hmap.tmpl
@@ -104,17 +104,6 @@ void hmap<obj_type, key_type>::del_elem( const key_type & k )
array[ i_current_pos ].info = DELETED;
}
-// Remove item x from the hash table.
-template <class obj_type, class key_type>
-void hmap<obj_type, key_type>::rename_key( const key_type & k1, const key_type & k2 )
-{
- int i_current_pos = find_pos( k1 );
- if( is_active( i_current_pos ) ) {
- array[ i_current_pos ].info = DELETED;
- add_elem( array[ i_current_pos ].element, k2 );
- }
-}
-
// Finds item x and resets its value.
template <class obj_type, class key_type>
obj_type hmap<obj_type, key_type>::set_elem( const obj_type & x, const key_type & k )
@@ -286,4 +275,8 @@ hmap<obj_type, key_type>::get_size()
return size;
}
+
+
+
#endif
+