Skip to content

Commit 9f86207

Browse files
committed
Removed typecasting methods
1 parent d1480ea commit 9f86207

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

src/core/modules/commands/command_wrap_python.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ void export_command()
121121
"Returns the entire command string"
122122
)
123123

124-
.def("__str__",
125-
&CCommand::GetCommandString,
126-
"Returns the entire command string"
127-
)
128-
129124
.def("__getitem__",
130125
&CCommand::operator[],
131126
"Gets the value of the argument at the given index",

src/core/modules/cvar/cvar_wrap_python.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -239,41 +239,21 @@ void export_convar()
239239
"Returns the value as a float."
240240
)
241241

242-
.def("__float__",
243-
&ConVar::GetFloat,
244-
"Returns the value as a float."
245-
)
246-
247242
.def("get_int",
248243
&ConVar::GetInt,
249244
"Returns the value as an int."
250245
)
251246

252-
.def("__int__",
253-
&ConVar::GetInt,
254-
"Returns the value as an int."
255-
)
256-
257247
.def("get_bool",
258248
&ConVar::GetBool,
259249
"Returns the value as a bool."
260250
)
261251

262-
.def("__bool__",
263-
&ConVar::GetBool,
264-
"Returns the value as a bool."
265-
)
266-
267252
.def("get_string",
268253
&ConVar::GetString,
269254
"Returns the value as a string."
270255
)
271256

272-
.def("__str__",
273-
&ConVar::GetString,
274-
"Returns the value as a string."
275-
)
276-
277257
.def("revert",
278258
&ConVar::Revert,
279259
"Resets to default value."

src/core/modules/entities/entities_wrap_python.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ void export_base_entity_handle()
9595
&CBaseHandle::ToInt
9696
)
9797

98-
.def("__int__",
99-
&CBaseHandle::ToInt
100-
)
101-
10298
.def(self != self)
10399
.def(self == self)
104100
.def(self < self)

0 commit comments

Comments
 (0)