@@ -7,7 +7,7 @@ use std::borrow::Cow;
7
7
use std:: fs:: File ;
8
8
use std:: io:: Write ;
9
9
10
- use crate :: util:: { self , Config , ToSanitizedCase , U32Ext } ;
10
+ use crate :: util:: { self , Config , ToSanitizedCase } ;
11
11
use crate :: Target ;
12
12
use anyhow:: { Context , Result } ;
13
13
@@ -146,15 +146,10 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
146
146
} ) ;
147
147
}
148
148
149
- let reg_sizes = util:: get_register_sizes ( d) ;
150
-
151
149
let generic_file = std:: str:: from_utf8 ( include_bytes ! ( "generic.rs" ) ) ?;
152
150
if config. generic_mod {
153
151
let mut file = File :: create ( config. output_dir . join ( "generic.rs" ) ) ?;
154
152
writeln ! ( file, "{}" , generic_file) ?;
155
- for ty in reg_sizes {
156
- writeln ! ( file, "impl_proxy!({});" , ty. size_to_str( ) ?) ?;
157
- }
158
153
if config. target == Target :: Msp430 && config. nightly {
159
154
let msp430_atomic_file =
160
155
std:: str:: from_utf8 ( include_bytes ! ( "generic_msp430_atomic.rs" ) ) ?;
@@ -175,10 +170,6 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
175
170
}
176
171
} else {
177
172
let mut tokens = syn:: parse_file ( generic_file) ?. into_token_stream ( ) ;
178
- for ty in reg_sizes {
179
- let ty = Ident :: new ( ty. size_to_str ( ) ?, Span :: call_site ( ) ) ;
180
- tokens. extend ( quote ! { impl_proxy!( #ty) ; } ) ;
181
- }
182
173
if config. target == Target :: Msp430 && config. nightly {
183
174
let msp430_atomic_file =
184
175
std:: str:: from_utf8 ( include_bytes ! ( "generic_msp430_atomic.rs" ) ) ?;
0 commit comments