From 267a5e7f6e0d578b3c9224fb87b78f76a9300c87 Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Thu, 9 Dec 2010 15:09:50 +0100 Subject: Remove unused ethread time functionality --- erts/lib_src/pthread/ethread.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'erts/lib_src/pthread') diff --git a/erts/lib_src/pthread/ethread.c b/erts/lib_src/pthread/ethread.c index 7e5f92655c..fc6aef2d1f 100644 --- a/erts/lib_src/pthread/ethread.c +++ b/erts/lib_src/pthread/ethread.c @@ -348,32 +348,6 @@ ethr_leave_ts_event(ethr_ts_event *tsep) ethr_leave_ts_event__(tsep); } -/* - * Current time - */ - -int -ethr_time_now(ethr_timeval *time) -{ - int res; - struct timeval tv; -#if ETHR_XCHK - if (ethr_not_inited__) { - ETHR_ASSERT(0); - return EACCES; - } - if (!time) { - ETHR_ASSERT(0); - return EINVAL; - } -#endif - - res = gettimeofday(&tv, NULL); - time->tv_sec = (long) tv.tv_sec; - time->tv_nsec = ((long) tv.tv_usec)*1000; - return res; -} - /* * Thread specific data */ -- cgit v1.2.3