You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2012/08/22 02:30:53 UTC

[lucy-commits] svn commit: r1375865 - in /lucy/trunk/charmonizer/src/Charmonizer/Core: OperatingSystem.c OperatingSystem.h

Author: marvin
Date: Wed Aug 22 00:30:53 2012
New Revision: 1375865

URL: http://svn.apache.org/viewvc?rev=1375865&view=rev
Log:
Remove obsolete functions.

*   OS_remove_exe
*   OS_remove_obj

Modified:
    lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.c
    lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.h

Modified: lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.c
URL: http://svn.apache.org/viewvc/lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.c?rev=1375865&r1=1375864&r2=1375865&view=diff
==============================================================================
--- lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.c (original)
+++ lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.c Wed Aug 22 00:30:53 2012
@@ -114,22 +114,6 @@ OS_remove(const char *name) {
     return retval;
 }
 
-void
-OS_remove_exe(const char *name) {
-    char *exe_name = (char*)malloc(strlen(name) + strlen(exe_ext) + 1);
-    sprintf(exe_name, "%s%s", name, exe_ext);
-    OS_remove(exe_name);
-    free(exe_name);
-}
-
-void
-OS_remove_obj(const char *name) {
-    char *obj_name = (char*)malloc(strlen(name) + strlen(obj_ext) + 1);
-    sprintf(obj_name, "%s%s", name, obj_ext);
-    OS_remove(obj_name);
-    free(obj_name);
-}
-
 int
 OS_run_local(const char *arg1, ...) {
     va_list  args;

Modified: lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.h
URL: http://svn.apache.org/viewvc/lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.h?rev=1375865&r1=1375864&r2=1375865&view=diff
==============================================================================
--- lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.h (original)
+++ lucy/trunk/charmonizer/src/Charmonizer/Core/OperatingSystem.h Wed Aug 22 00:30:53 2012
@@ -31,16 +31,6 @@ extern "C" {
 int
 chaz_OS_remove(const char *name);
 
-/* Remove an executable file named [name], appending the exe_ext if needed.
- */
-void
-chaz_OS_remove_exe(const char *name);
-
-/* Remove an object file named [name], appending the obj_ext if needed.
- */
-void
-chaz_OS_remove_obj(const char *name);
-
 /* Concatenate all arguments in a NULL-terminated list into a single command
  * string, prepend the appropriate prefix, and invoke via system().
  */
@@ -86,8 +76,6 @@ chaz_OS_init(void);
 
 #ifdef CHAZ_USE_SHORT_NAMES
   #define OS_remove                    chaz_OS_remove
-  #define OS_remove_exe                chaz_OS_remove_exe
-  #define OS_remove_obj                chaz_OS_remove_obj
   #define OS_run_local                 chaz_OS_run_local
   #define OS_run_quietly               chaz_OS_run_quietly
   #define OS_mkdir                     chaz_OS_mkdir