From 5f6ee9a06ef90eeb0c5836f330b05e99f44def07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Sat, 16 Sep 2023 00:09:09 +0200 Subject: [PATCH] lsteamclient: Remove unused imports and duplicate entries. CW-Bug-Id: #22729 --- lsteamclient/gen_wrapper.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 667ed602..13a90614 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -3,14 +3,10 @@ #NOTE: If you make modifications here, consider whether they should #be duplicated in ../vrclient/gen_wrapper.py -from __future__ import print_function - -CLANG_PATH='/usr/lib/clang/16' +CLANG_PATH='/usr/lib/clang/15' from clang.cindex import CursorKind, Index, Type, TypeKind from collections import namedtuple -import pprint -import sys import os import re import math @@ -176,7 +172,6 @@ aliases = { "SteamGameServer008":["SteamGameServer007","SteamGameServer006"], "SteamNetworkingSocketsSerialized002":["SteamNetworkingSocketsSerialized001"], "STEAMAPPS_INTERFACE_VERSION001":["SteamApps001"], - "STEAMAPPS_INTERFACE_VERSION001":["SteamApps001"], "SteamNetworkingSockets002":["SteamNetworkingSockets003"], } @@ -291,8 +286,6 @@ wrapped_classes = [ "ISteamNetworkingFakeUDPPort", ] -print_sizes = [] - class_versions = {} path_conversions = [ @@ -1333,8 +1326,6 @@ for sdkver in sdk_versions: handle_class(sdkver, child, classes[child.displayname]) if child.kind in [CursorKind.STRUCT_DECL, CursorKind.CLASS_DECL]: 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: m = open(f, "a")