]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Get rid of functions that don't have any callers.
authorVMware, Inc <>
Mon, 22 Mar 2010 22:08:32 +0000 (15:08 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 22 Mar 2010 22:08:32 +0000 (15:08 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/debug.h
open-vm-tools/lib/include/netutil.h
open-vm-tools/lib/include/system.h
open-vm-tools/lib/system/systemLinux.c
open-vm-tools/toolbox/debugStdio.c
open-vm-tools/vmware-user/debugStdio.c

index 1033e74a6046278d842934eeb2c4e95d8d5057f5..5485587a142ef1c4ff6191a3a931a795a71ad3b3 100644 (file)
@@ -31,9 +31,6 @@
 
 void Debug(char const *fmt, ...) PRINTF_DECL(1, 2);
 void Debug_Set(Bool enable, const char *prefix);
-Bool Debug_IsEnabled(void);
 void Debug_EnableToFile(const char *file, Bool backup);
-Bool Debug_EnableIfFile(const char *enableFile, const char *toFileFile);
-
 
 #endif /* __DEBUG_H__ */
index 7325af40e9e005ca2e359e7a3ecfda159b3e11d4..c85c4c356a2a1a16aa1cedb8eca495792e0d5e97 100644 (file)
@@ -73,7 +73,6 @@ typedef  FIXED_INFO_W2KSP1 *PFIXED_INFO;
 
 DWORD NetUtil_LoadIpHlpApiDll(void);
 DWORD NetUtil_FreeIpHlpApiDll(void);
-Bool NetUtil_ReleaseRenewIP(Bool release);
 
 /* Wrappers for functions in iphlpapi.dll */
 PFIXED_INFO NetUtil_GetNetworkParams(void);
index 449ee446578ad489184bde298d332b0c4186b17c..9d70061d11bdd1a15838c5b8073a8a880a289aa6 100644 (file)
@@ -36,7 +36,6 @@
 
 uint64 System_Uptime(void);
 Unicode System_GetTimeAsString(void);
-Bool System_IsACPI(void);
 void System_Shutdown(Bool reboot);
 Bool System_IsUserAdmin(void);
 
@@ -92,11 +91,8 @@ Bool System_SetAeroState(AeroStateCommand command, AeroStateCommand *oldState);
  *        preprocessor option.
  */
 #if !defined(_WIN32)
-Bool System_WritePidFile(const char *fileName, pid_t pid);
 const char **System_GetNativeEnviron(const char **compatEnviron);
 void System_FreeNativeEnviron(const char **nativeEnviron);
-int System_UnsetEnv(const char *variableName);
-char *System_SetLDPath(const char *path, const Bool native);
 #endif
 
 #endif /* __SYSTEM_H__ */
index 86b13150e103da98f575c3b056cdcf4b3ced906b..62875dfcb132c30c7893c89ae161749b00ac02d4 100644 (file)
@@ -239,32 +239,6 @@ System_GetTimeAsString(void)
 }
 
 
-/*
- *----------------------------------------------------------------------
- *
- * System_IsACPI --
- *
- *    Is this an ACPI system?
- *
- * Results:
- *    TRUE if this is an ACPI system.
- *    FALSE if this is not an ACPI system.
- *
- * Side effects:
- *     None.
- *
- *----------------------------------------------------------------------
- */
-
-Bool
-System_IsACPI(void)
-{
-   ASSERT(FALSE);
-
-   return FALSE;
-}
-
-
 /*
  *-----------------------------------------------------------------------------
  *
@@ -401,113 +375,6 @@ System_SetEnv(Bool global,      // IN
 } // System_SetEnv
 
 
-/*
- *----------------------------------------------------------------------
- *
- * System_UnsetEnv --
- *
- *    Unset environment variable.
- *
- * Results:
- *    0 if success, -1 otherwise.
- *
- * Side effects:
- *    Unsets the environment variable.
- *
- *----------------------------------------------------------------------
- */
-
-int
-System_UnsetEnv(const char *valueName) // IN: UTF-8
-{
-#if defined(sun)
-   return(-1);
-#else
-   Posix_Unsetenv(valueName);
-   return 0;
-#endif
-} // System_UnsetEnv
-
-
-/*
- *----------------------------------------------------------------------
- *
- * System_SetLDPath --
- *
- *    Set LD_LIBRARY_PATH. If native is TRUE, use VMWARE_LD_LIBRARY_PATH
- *    as the value (and ignore the path argument, which should be set to
- *    NULL in this case). If native is FALSE, use the passed in path (and
- *    if that path is NULL, unsetenv the value).
- *
- * Results:
- *    The previous value of the environment variable. The caller is
- *    responsible for calling free() on this pointer.
- *
- * Side effects:
- *    Manipulates the value of LD_LIBRARY_PATH variable.
- *
- *----------------------------------------------------------------------
- */
-
-char *
-System_SetLDPath(const char *path,      // IN: UTF-8
-                 const Bool native)     // IN: If TRUE, ignore path and use VMware value
-{
-   char *vmldpath = NULL;
-   char *tmppath = NULL;
-   char *oldpath;
-
-   ASSERT(!native || path == NULL);
-
-   /*
-    * Get the original LD_LIBRARY_PATH, so the installed applications
-    * don't try to use our versions of the libraries.
-    *
-    * From bora/apps/lib/lui/browser.cc::ResetEnvVars():
-    *
-    * For each variable we care about, there are three possible states:
-    * 1) The variable was not considered for saving.
-    *    This is indicated by VMWARE_<foo>'s first character not being
-    *    set to either "1" or "0".
-    *    We should not manipulate <foo>.
-    * 2) The variable was considered but was not set.
-    *    VMWARE_<foo> is set to "0".
-    *    We should unset <foo>.
-    * 3) The variable was considered and was set.
-    *    VMWARE_<foo> is set to "1" + "<value of foo>".
-    *    We should set <foo> back to the saved value.
-    *
-    * XXX: There are other variables that may need resetting (for a list, check
-    * bora/apps/lib/lui/browser.cc or the wrapper scripts), but that would
-    * require some more refactoring of this code (not using system(3), for
-    * example).
-    */
-   oldpath = System_GetEnv(TRUE, "LD_LIBRARY_PATH");
-   if (native == TRUE) {
-      char *p = NULL;
-      vmldpath = tmppath = System_GetEnv(TRUE, "VMWARE_LD_LIBRARY_PATH");
-      if (vmldpath && strlen(vmldpath) && vmldpath[0] == '1') {
-         vmldpath++;
-      } else {
-         vmldpath = p = Util_SafeStrdup("");
-      }
-      if (System_SetEnv(TRUE, "LD_LIBRARY_PATH", vmldpath) == -1) {
-         Debug("%s: failed to set LD_LIBRARY_PATH\n", __FUNCTION__);
-      }
-      free(tmppath);
-      free(p);
-   } else if (path) {
-      /*
-       * Set LD_LIBRARY_PATH to the specified value.
-       */
-      System_SetEnv(TRUE, "LD_LIBRARY_PATH", (char *) path);
-   } else {
-      System_UnsetEnv("LD_LIBRARY_PATH");
-   }
-   return oldpath;
-} // System_SetLDPath
-
-
 /*
  *-----------------------------------------------------------------------------
  *
index 22a6cb801bde65c97bcd69cf95f99931a9b5524b..c8ead38bfdb66222f8fd87cc6ddc646d6e4c5e71 100644 (file)
@@ -116,29 +116,6 @@ Debug_EnableToFile(const char *file,      // IN
 }
 
 
-/*
- *-----------------------------------------------------------------------------
- *
- * Debug_IsEnabled --
- *
- *    Is debugging output enabled?
- *
- * Result
- *    TRUE/FALSE
- *
- * Side-effects
- *    None.
- *
- *-----------------------------------------------------------------------------
- */
-
-Bool
-Debug_IsEnabled(void)
-{
-   return debugEnabled;
-}
-
-
 /*
  *-----------------------------------------------------------------------------
  *
index 22a6cb801bde65c97bcd69cf95f99931a9b5524b..c8ead38bfdb66222f8fd87cc6ddc646d6e4c5e71 100644 (file)
@@ -116,29 +116,6 @@ Debug_EnableToFile(const char *file,      // IN
 }
 
 
-/*
- *-----------------------------------------------------------------------------
- *
- * Debug_IsEnabled --
- *
- *    Is debugging output enabled?
- *
- * Result
- *    TRUE/FALSE
- *
- * Side-effects
- *    None.
- *
- *-----------------------------------------------------------------------------
- */
-
-Bool
-Debug_IsEnabled(void)
-{
-   return debugEnabled;
-}
-
-
 /*
  *-----------------------------------------------------------------------------
  *