@@ -20,32 +20,10 @@ use quote::quote;
2020use std:: env;
2121use std:: fs;
2222use std:: path:: Path ;
23- use typify:: TypeSpaceImpl ;
2423
2524const DENDRITE_ASIC_PACKAGE : PackageName =
2625 PackageName :: new_const ( "dendrite-asic" ) ;
2726
28- // List of types we replace with the existing type of the same name from the
29- // `transceiver_decode` crate.
30- const REPLACEMENTS : & [ & ' static str ] = & [
31- "ActiveCableMediaInterfaceId" ,
32- "ApplicationDescriptor" ,
33- "BaseTMediaInterfaceId" ,
34- "CmisDatapath" ,
35- "CmisDatapathState" ,
36- "CmisLaneStatus" ,
37- "ConnectorType" ,
38- "ExtendedSpecificationComplianceCode" ,
39- "HostElectricalInterfaceId" ,
40- "Identifier" ,
41- "MediaType" ,
42- "MmfMediaInterfaceId" ,
43- "PassiveCopperMediaInterfaceId" ,
44- "Sff8636Datapath" ,
45- "SffComplianceCode" ,
46- "SmfMediaInterfaceId" ,
47- ] ;
48-
4927fn main ( ) -> Result < ( ) > {
5028 // Find the current dendrite repo commit from our package manifest.
5129 let manifest = fs:: read_to_string ( "../../package-manifest.toml" )
@@ -115,13 +93,6 @@ fn main() -> Result<()> {
11593 }
11694 } )
11795 . with_derive ( "PartialEq" ) ;
118- for repl in REPLACEMENTS {
119- settings. with_replacement (
120- repl,
121- format ! ( "::transceiver_decode::{repl}" ) ,
122- std:: iter:: once ( TypeSpaceImpl :: Display ) ,
123- ) ;
124- }
12596
12697 let code = progenitor:: Generator :: new ( & settings)
12798 . generate_tokens ( & spec)
0 commit comments