Skip to content

Commit 9e1c1cd

Browse files
authored
Remove unused entries from struct_info.json. NFC (#17043)
A bunch of time-related code was recently moved into native making these redundant.
1 parent 741cf4f commit 9e1c1cd

File tree

2 files changed

+1
-58
lines changed

2 files changed

+1
-58
lines changed

src/struct_info.json

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,6 @@
1414
]
1515
}
1616
},
17-
{
18-
"file": "limits.h",
19-
"defines": [
20-
"INT_MAX"
21-
]
22-
},
23-
{
24-
"file": "utime.h",
25-
"structs": {
26-
"utimbuf": [
27-
"actime",
28-
"modtime"
29-
]
30-
}
31-
},
3217
{
3318
"file": "sys/stat.h",
3419
"defines": [
@@ -146,21 +131,10 @@
146131
]
147132
}
148133
},
149-
{
150-
"file": "sys/time.h",
151-
"structs": {
152-
"timeval": [
153-
"tv_sec",
154-
"tv_usec"
155-
]
156-
}
157-
},
158134
{
159135
"file": "time.h",
160136
"defines": [
161-
"CLOCK_REALTIME",
162-
"CLOCK_MONOTONIC",
163-
"CLOCK_MONOTONIC_RAW"
137+
"CLOCK_REALTIME"
164138
],
165139
"structs": {
166140
"tm": [
@@ -182,17 +156,6 @@
182156
]
183157
}
184158
},
185-
{
186-
"file": "compat/sys/timeb.h",
187-
"structs": {
188-
"timeb": [
189-
"time",
190-
"millitm",
191-
"timezone",
192-
"dstflag"
193-
]
194-
}
195-
},
196159
{
197160
"file": "netdb.h",
198161
"defines": [

tests/reference_struct_info.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
"AUDIO_F32": 33056,
1818
"AUDIO_S16LSB": 32784,
1919
"AUDIO_U8": 8,
20-
"CLOCK_MONOTONIC": 1,
21-
"CLOCK_MONOTONIC_RAW": 4,
2220
"CLOCK_REALTIME": 0,
2321
"E2BIG": 1,
2422
"EACCES": 2,
@@ -279,7 +277,6 @@
279277
"File::SymlinkKind": 3,
280278
"File::UnknownKind": 0,
281279
"INADDR_LOOPBACK": 2130706433,
282-
"INT_MAX": 2147483647,
283280
"IPPROTO_TCP": 6,
284281
"IPPROTO_UDP": 17,
285282
"MAP_ANONYMOUS": 32,
@@ -1464,23 +1461,11 @@
14641461
"threadStatus": 0,
14651462
"timeSpentInStatus": 16
14661463
},
1467-
"timeb": {
1468-
"__size__": 12,
1469-
"dstflag": 8,
1470-
"millitm": 4,
1471-
"time": 0,
1472-
"timezone": 6
1473-
},
14741464
"timespec": {
14751465
"__size__": 8,
14761466
"tv_nsec": 4,
14771467
"tv_sec": 0
14781468
},
1479-
"timeval": {
1480-
"__size__": 8,
1481-
"tv_sec": 0,
1482-
"tv_usec": 4
1483-
},
14841469
"tm": {
14851470
"__size__": 44,
14861471
"tm_gmtoff": 36,
@@ -1494,11 +1479,6 @@
14941479
"tm_yday": 28,
14951480
"tm_year": 20,
14961481
"tm_zone": 40
1497-
},
1498-
"utimbuf": {
1499-
"__size__": 8,
1500-
"actime": 0,
1501-
"modtime": 4
15021482
}
15031483
}
15041484
}

0 commit comments

Comments
 (0)