Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Chriscbr committed Sep 25, 2023
1 parent 8225a80 commit eb03c24
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions libs/wingc/src/jsify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,32 +778,6 @@ impl<'a> JSifier<'a> {
preflight_file_name,
STDLIB,
))
// let path = Utf8Path::new(&name.name);
// let directory_files = self.source_file_graph.dependencies_of(path);
// let preflight_file_map = self.preflight_file_map.borrow();
// let mut preflight_files = vec![];
// for file in directory_files {
// if let Some(preflight_file_name) = preflight_file_map.get(file) {
// preflight_files.push(preflight_file_name);
// }
// }
// // generate something that looks like this
// // ```
// // const foo = {
// // ...require("./foo.js")({ $stdlib: $stdlib }),
// // ...require("./bar.js")({ $stdlib: $stdlib }),
// // };
// // ```
// let mut code = CodeMaker::default();
// code.open(format!(
// "const {} = {{",
// identifier.as_ref().expect("bring directory requires an alias")
// ));
// for preflight_file_name in preflight_files.iter() {
// code.line(format!("...require(\"./{}\")({{ {} }}),", preflight_file_name, STDLIB));
// }
// code.close("};");
// code
}
},
StmtKind::SuperConstructor { arg_list } => {
Expand Down

0 comments on commit eb03c24

Please sign in to comment.