Bug 1517567 - remove unused FILETIME-related functions from chromium ipc; r=jld

This removes one include of windows.h, which is nice.
This commit is contained in:
Nathan Froyd 2019-01-04 09:13:05 -05:00
Родитель 647b040b0f
Коммит 4efee8a5f1
2 изменённых файлов: 0 добавлений и 35 удалений

Просмотреть файл

@ -28,12 +28,6 @@
#include "base/basictypes.h"
#if defined(OS_WIN)
// For FILETIME in FromFileTime, until it moves to a new converter class.
// See TODO(iyengar) below.
#include <windows.h>
#endif
namespace base {
class Time;
@ -199,11 +193,6 @@ class Time {
static Time FromDoubleT(double dt);
double ToDoubleT() const;
#if defined(OS_WIN)
static Time FromFileTime(FILETIME ft);
FILETIME ToFileTime() const;
#endif
// Converts an exploded structure representing either the local time or UTC
// into a Time class.
static Time FromUTCExploded(const Exploded& exploded) {
@ -391,11 +380,6 @@ class TimeTicks {
// Tick count in microseconds.
int64_t ticks_;
#if defined(OS_WIN)
typedef DWORD (*TickFunctionType)(void);
static TickFunctionType SetMockTickFunction(TickFunctionType ticker);
#endif
};
inline TimeTicks TimeDelta::operator+(TimeTicks t) const {

Просмотреть файл

@ -138,17 +138,6 @@ Time Time::NowFromSystemTime() {
return Time(initial_time);
}
// static
Time Time::FromFileTime(FILETIME ft) {
return Time(FileTimeToMicroseconds(ft));
}
FILETIME Time::ToFileTime() const {
FILETIME utc_ft;
MicrosecondsToFileTime(us_, &utc_ft);
return utc_ft;
}
// static
Time Time::FromExploded(bool is_local, const Exploded& exploded) {
// Create the system struct representing our exploded time. It will either be
@ -256,14 +245,6 @@ class NowSingleton {
} // namespace
// static
TimeTicks::TickFunctionType TimeTicks::SetMockTickFunction(
TickFunctionType ticker) {
TickFunctionType old = tick_function;
tick_function = ticker;
return old;
}
// static
TimeTicks TimeTicks::Now() {
return TimeTicks() + NowSingleton::instance().Now();