Remove Mono_Posix_Syscall_utimes_bad
authorJonas 'Sortie' Termansen <sortie@maxsi.org>
Mon, 23 Jun 2014 23:39:10 +0000 (01:39 +0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Thu, 26 Jun 2014 14:52:53 +0000 (10:52 -0400)
Welcome to the world of tomorrow! It's been almost a decade since this was
made obsolete in 2005. Nothing uses this function any longer. Additionally
it is completely broken as utimes takes a pointer to an array with two
timevals, but the code passes only a pointer to a single timeval.

This change is released under the MIT/X11 license.

support/sys-time.c

index 1309f2a975342252de9335d4245c1b955bf35441..a1c0ba0b184ee7326e5788adb0371215b5703109 100644 (file)
@@ -69,27 +69,6 @@ Mono_Posix_Syscall_settimeofday (
        return r;
 }
 
-/* Remove this at some point in the future */
-gint32
-Mono_Posix_Syscall_utimes_bad (const char *filename,
-       struct Mono_Posix_Timeval *tv);
-
-gint32
-Mono_Posix_Syscall_utimes_bad (const char *filename,
-       struct Mono_Posix_Timeval *tv)
-{
-       struct timeval _tv;
-       struct timeval *ptv = NULL;
-
-       if (tv) {
-               _tv.tv_sec  = tv->tv_sec;
-               _tv.tv_usec = tv->tv_usec;
-               ptv = &_tv;
-       }
-
-       return utimes (filename, ptv);
-}
-
 static inline struct timeval*
 copy_utimes (struct timeval* to, struct Mono_Posix_Timeval *from)
 {