aboutsummaryrefslogtreecommitdiffhomepage
path: root/env_universal_common.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-10-31 01:15:50 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-10-31 01:15:50 -0700
commit7ac593273e25d5ce39104dc1752660a43a29f61d (patch)
tree1f0a18a2f49a61460ff8d7c1c3de375af37395d4 /env_universal_common.cpp
parenta529fc9d83295fdf9418436b68d056162ba8231b (diff)
Remove a bunch of dead code identified by cppcheck
Diffstat (limited to 'env_universal_common.cpp')
-rw-r--r--env_universal_common.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/env_universal_common.cpp b/env_universal_common.cpp
index 07d32523..88ec7749 100644
--- a/env_universal_common.cpp
+++ b/env_universal_common.cpp
@@ -80,24 +80,6 @@ static wcstring default_vars_path()
}
/**
- The table of all universal variables
-*/
-static env_universal_t &default_universal_vars()
-{
- static env_universal_t s_default_vars(L"");
- return s_default_vars;
-}
-
-static void (*callback)(fish_message_type_t type,
- const wchar_t *key,
- const wchar_t *val);
-
-void env_universal_common_init(void (*cb)(fish_message_type_t type, const wchar_t *key, const wchar_t *val))
-{
- callback = cb;
-}
-
-/**
Test if the message msg contains the command cmd
*/
static bool match(const wchar_t *msg, const wchar_t *cmd)
@@ -1614,24 +1596,6 @@ static bool bool_from_env_var(const char *name, bool default_value)
return var ? from_string<bool>(var) : default_value;
}
-static bool initialize_synchronizes_via_fishd()
-{
- if (program_name && ! wcscmp(program_name, L"fishd"))
- {
- /* fishd always wants to use fishd */
- return true;
- }
-
- return bool_from_env_var(UNIVERSAL_USE_FISHD, false);
-}
-
-bool synchronizes_via_fishd()
-{
- /* Note that in general we can't change this once it's been set, so we only load it once */
- static bool result = initialize_synchronizes_via_fishd();
- return result;
-}
-
bool universal_log_enabled()
{
return bool_from_env_var(UNIVERSAL_LOGGING_ENV_NAME, false);