mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-16 00:28:27 +03:00
lsteamclient: Remove unused imports and duplicate entries.
CW-Bug-Id: #22729
This commit is contained in:
parent
623d71250f
commit
5f6ee9a06e
@ -3,14 +3,10 @@
|
|||||||
#NOTE: If you make modifications here, consider whether they should
|
#NOTE: If you make modifications here, consider whether they should
|
||||||
#be duplicated in ../vrclient/gen_wrapper.py
|
#be duplicated in ../vrclient/gen_wrapper.py
|
||||||
|
|
||||||
from __future__ import print_function
|
CLANG_PATH='/usr/lib/clang/15'
|
||||||
|
|
||||||
CLANG_PATH='/usr/lib/clang/16'
|
|
||||||
|
|
||||||
from clang.cindex import CursorKind, Index, Type, TypeKind
|
from clang.cindex import CursorKind, Index, Type, TypeKind
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import pprint
|
|
||||||
import sys
|
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import math
|
import math
|
||||||
@ -176,7 +172,6 @@ aliases = {
|
|||||||
"SteamGameServer008":["SteamGameServer007","SteamGameServer006"],
|
"SteamGameServer008":["SteamGameServer007","SteamGameServer006"],
|
||||||
"SteamNetworkingSocketsSerialized002":["SteamNetworkingSocketsSerialized001"],
|
"SteamNetworkingSocketsSerialized002":["SteamNetworkingSocketsSerialized001"],
|
||||||
"STEAMAPPS_INTERFACE_VERSION001":["SteamApps001"],
|
"STEAMAPPS_INTERFACE_VERSION001":["SteamApps001"],
|
||||||
"STEAMAPPS_INTERFACE_VERSION001":["SteamApps001"],
|
|
||||||
"SteamNetworkingSockets002":["SteamNetworkingSockets003"],
|
"SteamNetworkingSockets002":["SteamNetworkingSockets003"],
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -291,8 +286,6 @@ wrapped_classes = [
|
|||||||
"ISteamNetworkingFakeUDPPort",
|
"ISteamNetworkingFakeUDPPort",
|
||||||
]
|
]
|
||||||
|
|
||||||
print_sizes = []
|
|
||||||
|
|
||||||
class_versions = {}
|
class_versions = {}
|
||||||
|
|
||||||
path_conversions = [
|
path_conversions = [
|
||||||
@ -1333,8 +1326,6 @@ for sdkver in sdk_versions:
|
|||||||
handle_class(sdkver, child, classes[child.displayname])
|
handle_class(sdkver, child, classes[child.displayname])
|
||||||
if child.kind in [CursorKind.STRUCT_DECL, CursorKind.CLASS_DECL]:
|
if child.kind in [CursorKind.STRUCT_DECL, CursorKind.CLASS_DECL]:
|
||||||
handle_struct(sdkver, child)
|
handle_struct(sdkver, child)
|
||||||
if child.displayname in print_sizes:
|
|
||||||
print("size of %s is %u" % (child.displayname, child.type.get_size()))
|
|
||||||
|
|
||||||
for f in cpp_files_need_close_brace:
|
for f in cpp_files_need_close_brace:
|
||||||
m = open(f, "a")
|
m = open(f, "a")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user