Remove g_time2() call

This is currently unused in xrdp
This commit is contained in:
matt335672
2024-12-04 10:21:09 +00:00
parent b02689ab44
commit 90798cdeaa
3 changed files with 1 additions and 21 deletions
-17
View File
@@ -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 */
-1
View File
@@ -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);
+1 -3
View File
@@ -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)