File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -2166,12 +2166,6 @@ def generate_utility_functions(api, output_dir):
21662166 header .append ("public:" )
21672167
21682168 for function in api ["utility_functions" ]:
2169- if function ["name" ] == "is_instance_valid" :
2170- # The `is_instance_valid()` function doesn't work as developers expect, and unless used very
2171- # carefully will cause crashes. Instead, developers should use `ObjectDB::get_instance()`
2172- # with object ids to ensure that an instance is still valid.
2173- continue
2174-
21752169 vararg = "is_vararg" in function and function ["is_vararg" ]
21762170
21772171 function_signature = "\t "
@@ -2206,9 +2200,6 @@ def generate_utility_functions(api, output_dir):
22062200 source .append ("" )
22072201
22082202 for function in api ["utility_functions" ]:
2209- if function ["name" ] == "is_instance_valid" :
2210- continue
2211-
22122203 vararg = "is_vararg" in function and function ["is_vararg" ]
22132204
22142205 function_signature = make_signature ("UtilityFunctions" , function )
You can’t perform that action at this time.
0 commit comments