Skip to content

Commit aaa09be

Browse files
committed
remove some dead code
1 parent aa2892e commit aaa09be

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

progenitor-macro/src/lib.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use std::{
88
collections::HashMap,
9-
fmt::Display,
109
fs::File,
1110
path::{Path, PathBuf},
1211
};
@@ -157,19 +156,6 @@ struct MacroSettings {
157156
convert: OrderedMap<SchemaObject, ParseWrapper<TypeAndImpls>>,
158157
}
159158

160-
#[derive(Deserialize)]
161-
enum MacroSettingsImpl {
162-
Display,
163-
}
164-
165-
impl Display for MacroSettingsImpl {
166-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
167-
match self {
168-
MacroSettingsImpl::Display => f.write_str("Display"),
169-
}
170-
}
171-
}
172-
173159
#[derive(Deserialize)]
174160
struct MacroPatch {
175161
#[serde(default)]
@@ -191,18 +177,6 @@ impl From<MacroPatch> for TypePatch {
191177
}
192178
}
193179

194-
#[derive(Deserialize)]
195-
enum GenerationStyle {
196-
Positional,
197-
Builder,
198-
}
199-
200-
impl Default for GenerationStyle {
201-
fn default() -> Self {
202-
Self::Positional
203-
}
204-
}
205-
206180
#[derive(Debug)]
207181
struct ClosureOrPath(proc_macro2::TokenStream);
208182

0 commit comments

Comments
 (0)