aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal.cpp
diff options
context:
space:
mode:
authorGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 00:22:30 +0530
committerGravatar Siteshwar Vashisht <siteshwar@gmail.com>2012-02-18 00:25:29 +0530
commit6e58c9f7c8f21b4e5eaa698d275eefe013117cdf (patch)
treecee3a08e3b4b8cd8c731a7b03d4f2dcdc0b9a7ad /env_universal.cpp
parenta08450bcb6050cc630d87ae6d7d5f203f8eeca62 (diff)
Switched to std::map instead of hash_table_t in env.cpp and env_universal_common.cpp.
Diffstat (limited to 'env_universal.cpp')
-rw-r--r--env_universal.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/env_universal.cpp b/env_universal.cpp
index c6fee60e..7ab5956c 100644
--- a/env_universal.cpp
+++ b/env_universal.cpp
@@ -217,7 +217,7 @@ static void env_universal_remove_all()
for( i=0; i<lst.size(); i++ )
{
const wcstring &key = lst.at(i);
- env_universal_common_remove( key.c_str() );
+ env_universal_common_remove( key );
}
}
@@ -450,7 +450,7 @@ int env_universal_remove( const wchar_t *name )
if( is_dead() )
{
- env_universal_common_remove( name );
+ env_universal_common_remove( wcstring(name) );
}
else
{
@@ -463,21 +463,6 @@ int env_universal_remove( const wchar_t *name )
return res;
}
-void env_universal_get_names( array_list_t *l,
- int show_exported,
- int show_unexported )
-{
- if( !init )
- return;
-
- CHECK( l, );
-
- env_universal_common_get_names( l,
- show_exported,
- show_unexported );
-}
-
-
void env_universal_get_names2( wcstring_list_t &lst,
int show_exported,
int show_unexported )