Skip to content

Commit 9377d30

Browse files
committed
We do not need systemtime
1 parent 47ccd69 commit 9377d30

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

win32ctypes/core/cffi/_winbase.py

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@
1515
DWORD dwHighDateTime;
1616
} FILETIME, *PFILETIME, *LPFILETIME;
1717
18-
19-
typedef struct _SYSTEMTIME {
20-
WORD wYear;
21-
WORD wMonth;
22-
WORD wDayOfWeek;
23-
WORD wDay;
24-
WORD wHour;
25-
WORD wMinute;
26-
WORD wSecond;
27-
WORD wMilliseconds;
28-
} SYSTEMTIME, *PSYSTEMTIME, *LPSYSTEMTIME;
29-
3018
""")
3119

3220

@@ -43,36 +31,9 @@ def fromdict(cls, filetime):
4331
c_filetime.dwHighDateTime = filetime['dwHighDateTime']
4432
return c_filetime
4533

46-
47-
class _SYSTEMTIME(object):
48-
49-
def __call__(self):
50-
return ffi.new("PSYSTEMTIME")[0]
51-
52-
@classmethod
53-
def fromdict(cls, systemtime):
54-
factory = cls()
55-
c_systemtime = factory()
56-
c_systemtime.wYear = systemtime['Year']
57-
c_systemtime.wMonth = systemtime['Month']
58-
c_systemtime.wDayOfWeek = systemtime['DayOfWeek']
59-
c_systemtime.wDay = systemtime['Day']
60-
c_systemtime.wHour = systemtime['Hour']
61-
c_systemtime.wMinute = systemtime['Minute']
62-
c_systemtime.wSecond = systemtime['Second']
63-
c_systemtime.wMilliseconds = systemtime['Milliseconds']
64-
return c_systemtime
65-
66-
6734
def PFILETIME(value=None):
6835
return ffi.new("PFILETIME", ffi.NULL if value is None else value)
6936

7037

71-
def PSYSTEMTIME(value=None):
72-
return ffi.new("PSYSTEMTIME", ffi.NULL if value is None else value)
73-
74-
7538
FILETIME = _FILETIME()
76-
SYSTEMTIME = _SYSTEMTIME()
7739
LPFILETIME = PFILETIME
78-
LPSYSTEMTIME= PSYSTEMTIME

0 commit comments

Comments
 (0)