From: Jonas 'Sortie' Termansen Date: Mon, 23 Jun 2014 23:39:10 +0000 (+0200) Subject: Remove Mono_Posix_Syscall_utimes_bad X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=325982b65f8fbdabef8423f83c5087ee37d46484;p=mono.git Remove Mono_Posix_Syscall_utimes_bad 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. --- diff --git a/support/sys-time.c b/support/sys-time.c index 1309f2a9753..a1c0ba0b184 100644 --- a/support/sys-time.c +++ b/support/sys-time.c @@ -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) {