Skip to content

Commit 1ca38fe

Browse files
committed
remove old commented out code
1 parent 779e63a commit 1ca38fe

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

dsc/src/resolve.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -99,27 +99,6 @@ pub fn get_contents(input: &str) -> Result<(Option<String>, String), String> {
9999
return Err(format!("{} '{include_path:?}': {err}", t!("resolve.invalidFile")));
100100
}
101101
}
102-
// // try to deserialize the Include content as YAML first
103-
// let configuration: Configuration = match serde_yaml::from_str(&include_content) {
104-
// Ok(configuration) => configuration,
105-
// Err(_err) => {
106-
// // if that fails, try to deserialize it as JSON
107-
// match serde_json::from_str(&include_content) {
108-
// Ok(configuration) => configuration,
109-
// Err(err) => {
110-
// return Err(format!("{} '{include_path:?}': {err}", t!("resolve.invalidFile")));
111-
// }
112-
// }
113-
// }
114-
// };
115-
116-
// // serialize the Configuration as JSON
117-
// match serde_json::to_string(&configuration) {
118-
// Ok(json) => json,
119-
// Err(err) => {
120-
// return Err(format!("JSON: {err}"));
121-
// }
122-
// }
123102
},
124103
IncludeKind::Content(text) => {
125104
match parse_input_to_json(&text) {

0 commit comments

Comments
 (0)