Skip to content

Commit 96a8c0d

Browse files
committed
remove dead code
1 parent 9b0cb35 commit 96a8c0d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/config.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -163,26 +163,6 @@ impl IdentFormat {
163163
self.suffix = suffix.into();
164164
self
165165
}
166-
pub fn parse(s: &str) -> Result<Self, ()> {
167-
let mut it = s.split(":");
168-
match (it.next(), it.next(), it.next(), it.next()) {
169-
(Some(prefix), Some(case), Some(suffix), None) => {
170-
let case = match case {
171-
"C" | "CONSTANT" => Some(Case::Constant),
172-
"P" | "Pascal" => Some(Case::Pascal),
173-
"S" | "snake" => Some(Case::Snake),
174-
"_" => None,
175-
_ => return Err(()),
176-
};
177-
Ok(Self {
178-
case,
179-
prefix: prefix.into(),
180-
suffix: suffix.into(),
181-
})
182-
}
183-
_ => Err(()),
184-
}
185-
}
186166
}
187167

188168
#[derive(Clone, Debug, PartialEq, Eq)]

0 commit comments

Comments
 (0)