diff options
author | Christian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com> | 2022-11-24 11:17:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 11:17:08 -0500 |
commit | 95fd17b874910184cc0fcd33b287fa4e205d9d7a (patch) | |
tree | 37b4a55919e93b8425fdc8e381a35f86bf7a5cc1 /bindgen/codegen/mod.rs | |
parent | 73f33e5a0288f4030e1e4389db0d9bfca1d69d2d (diff) |
Remove traits that have a single implementation (#2363)
Diffstat (limited to 'bindgen/codegen/mod.rs')
-rw-r--r-- | bindgen/codegen/mod.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bindgen/codegen/mod.rs b/bindgen/codegen/mod.rs index e201578e..b4050637 100644 --- a/bindgen/codegen/mod.rs +++ b/bindgen/codegen/mod.rs @@ -2406,18 +2406,7 @@ impl CodeGenerator for CompInfo { } } -trait MethodCodegen { - fn codegen_method( - &self, - ctx: &BindgenContext, - methods: &mut Vec<proc_macro2::TokenStream>, - method_names: &mut HashSet<String>, - result: &mut CodegenResult<'_>, - parent: &CompInfo, - ); -} - -impl MethodCodegen for Method { +impl Method { fn codegen_method( &self, ctx: &BindgenContext, |