1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Remove deadcode

This commit is contained in:
Nicolas Viennot 2015-09-29 02:39:31 -04:00
parent e5b5c42225
commit 339464b6cb

View File

@ -227,20 +227,3 @@ int tmate_connect_to_master(void)
return _tmate_connect_to_master(tmate_settings->master_hostname,
tmate_settings->master_port);
}
void timespec_subtract(struct timespec *result,
struct timespec *x, struct timespec *y)
{
if (x->tv_nsec < y->tv_nsec) {
result->tv_sec = x->tv_sec - y->tv_sec - 1;
result->tv_nsec = x->tv_nsec - y->tv_nsec + 1000000000;
} else {
result->tv_sec = x->tv_sec - y->tv_sec;
result->tv_nsec = x->tv_nsec - y->tv_nsec;
}
}
unsigned long long timespec_to_millisec(struct timespec *ts)
{
return ts->tv_sec * 1000ULL + ts->tv_nsec / 1000000ULL;
}