Remove g_time2() call
This is currently unused in xrdp
This commit is contained in:
@@ -3763,23 +3763,6 @@ g_check_user_in_group(const char *username, int gid, int *ok)
|
||||
}
|
||||
#endif // HAVE_GETGROUPLIST
|
||||
|
||||
/*****************************************************************************/
|
||||
/* returns the number of milliseconds since the machine was
|
||||
started. */
|
||||
int
|
||||
g_time2(void)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
return (int)GetTickCount();
|
||||
#else
|
||||
struct tms tm;
|
||||
clock_t num_ticks = 0;
|
||||
g_memset(&tm, 0, sizeof(struct tms));
|
||||
num_ticks = times(&tm);
|
||||
return (int)(num_ticks * 10);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* returns time in milliseconds, uses gettimeofday
|
||||
does not work in win32 */
|
||||
|
||||
@@ -393,7 +393,6 @@ int g_getgroup_info(const char *groupname, int *gid);
|
||||
* Primary group of username is also checked
|
||||
*/
|
||||
int g_check_user_in_group(const char *username, int gid, int *ok);
|
||||
int g_time2(void);
|
||||
int g_time3(void);
|
||||
int g_save_to_bmp(const char *filename, char *data, int stride_bytes,
|
||||
int width, int height, int depth, int bits_per_pixel);
|
||||
|
||||
@@ -86,9 +86,7 @@ xcommon_fatal_handler(Display *dis)
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* returns time in milliseconds
|
||||
this is like g_time2 in os_calls, but not milliseconds since machine was
|
||||
up, something else
|
||||
/* returns time in milliseconds since a point in the past
|
||||
this is a time value similar to what the xserver uses */
|
||||
int
|
||||
xcommon_get_local_time(void)
|
||||
|
||||
Reference in New Issue
Block a user