@@ -93,17 +93,10 @@ impl RustScript {
93
93
fn owner_ids ( & self ) -> Array < i64 > {
94
94
let owners = self . owners . borrow ( ) ;
95
95
96
- godot_print ! ( "extracting script owners: {:?}" , * owners) ;
97
-
98
96
let set: HashSet < _ > = owners
99
97
. iter ( )
100
- . filter_map ( |item| {
101
- let strong_ref = item. get_ref ( ) . to :: < Option < Gd < Object > > > ( ) ;
102
-
103
- godot_print ! ( "strong ref: {:?}" , strong_ref) ;
104
-
105
- strong_ref. map ( |obj| obj. instance_id ( ) . to_i64 ( ) )
106
- } )
98
+ . filter_map ( |item| item. get_ref ( ) . to :: < Option < Gd < Object > > > ( ) )
99
+ . map ( |obj| obj. instance_id ( ) . to_i64 ( ) )
107
100
. collect ( ) ;
108
101
109
102
set. into_iter ( ) . collect ( )
@@ -120,21 +113,11 @@ impl RustScript {
120
113
godot_warn ! ( "over writing existing owners of rust script" ) ;
121
114
}
122
115
123
- godot_print ! ( "assigning owners list to script: {:?}" , ids) ;
124
-
125
116
* self . owners . borrow_mut ( ) = ids
126
117
. iter_shared ( )
127
118
. map ( InstanceId :: from_i64)
128
119
. filter_map ( |id| {
129
- godot_print ! (
130
- "reloading script instance of {}, {}" ,
131
- id,
132
- self . get_class_name( )
133
- ) ;
134
-
135
120
let result: Option < Gd < Object > > = Gd :: try_from_instance_id ( id) . ok ( ) ;
136
-
137
- godot_print ! ( "object for {} is {:?}" , id, result) ;
138
121
result
139
122
} )
140
123
. map ( |gd_ref| godot:: engine:: utilities:: weakref ( gd_ref. to_variant ( ) ) . to ( ) )
@@ -145,8 +128,6 @@ impl RustScript {
145
128
#[ godot_api]
146
129
impl IScriptExtension for RustScript {
147
130
fn init ( base : Base < Self :: Base > ) -> Self {
148
- godot_print ! ( "creating RustScript struct for {:?}" , base) ;
149
-
150
131
Self {
151
132
class_name : GString :: new ( ) ,
152
133
source_code : GString :: new ( ) ,
@@ -203,11 +184,6 @@ impl IScriptExtension for RustScript {
203
184
}
204
185
205
186
unsafe fn placeholder_instance_create ( & self , for_object : Gd < Object > ) -> * mut c_void {
206
- godot_print ! (
207
- "creating placeholder instance for script {}" ,
208
- self . get_global_name( )
209
- ) ;
210
-
211
187
self . owners
212
188
. borrow_mut ( )
213
189
. push ( godot:: engine:: utilities:: weakref ( for_object. to_variant ( ) ) . to ( ) ) ;
@@ -347,11 +323,6 @@ impl IScriptExtension for RustScript {
347
323
348
324
// godot script reload hook
349
325
fn reload ( & mut self , _keep_state : bool ) -> godot:: engine:: global:: Error {
350
- godot_print ! (
351
- "new script properties: {:?}" ,
352
- self . get_script_property_list( )
353
- ) ;
354
-
355
326
self . owners . borrow ( ) . iter ( ) . for_each ( |owner| {
356
327
let mut object: Gd < Object > = match owner. get_ref ( ) . try_to ( ) {
357
328
Ok ( owner) => owner,
0 commit comments