@@ -65,11 +65,8 @@ impl InitHandle {
65
65
this : * mut sys:: godot_object ,
66
66
_method_data : * mut libc:: c_void ,
67
67
) -> * mut libc:: c_void {
68
- use std:: boxed:: Box ;
69
68
use std:: cell:: RefCell ;
70
69
71
- use crate :: GodotObject ;
72
-
73
70
let val = C :: init ( C :: Base :: from_sys ( this) ) ;
74
71
75
72
let wrapper = Box :: new ( RefCell :: new ( val) ) ;
@@ -89,7 +86,6 @@ impl InitHandle {
89
86
_method_data : * mut libc:: c_void ,
90
87
user_data : * mut libc:: c_void ,
91
88
) -> ( ) {
92
- use std:: boxed:: Box ;
93
89
use std:: cell:: RefCell ;
94
90
95
91
let wrapper: Box < RefCell < C > > = Box :: from_raw ( user_data as * mut _ ) ;
@@ -141,11 +137,8 @@ impl InitHandle {
141
137
this : * mut sys:: godot_object ,
142
138
_method_data : * mut libc:: c_void ,
143
139
) -> * mut libc:: c_void {
144
- use std:: boxed:: Box ;
145
140
use std:: cell:: RefCell ;
146
141
147
- use crate :: GodotObject ;
148
-
149
142
let val = C :: init ( C :: Base :: from_sys ( this) ) ;
150
143
151
144
let wrapper = Box :: new ( RefCell :: new ( val) ) ;
@@ -165,7 +158,6 @@ impl InitHandle {
165
158
_method_data : * mut libc:: c_void ,
166
159
user_data : * mut libc:: c_void ,
167
160
) -> ( ) {
168
- use std:: boxed:: Box ;
169
161
use std:: cell:: RefCell ;
170
162
171
163
let wrapper: Box < RefCell < C > > = Box :: from_raw ( user_data as * mut _ ) ;
@@ -345,7 +337,6 @@ impl<C: NativeClass> ClassBuilder<C> {
345
337
}
346
338
347
339
pub fn add_signal ( & self , signal : Signal ) {
348
- use std:: ptr;
349
340
unsafe {
350
341
let name = GodotString :: from_str ( signal. name ) ;
351
342
let mut args = signal
0 commit comments