Skip to content

Commit

Permalink
Remove commented-out code
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlansneff committed Apr 19, 2019
1 parent 65838fe commit c3ef1f8
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/llvm-backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,6 @@ impl Compiler for LLVMCompiler {

let (backend, cache_gen) = backend::LLVMBackend::new(module, intrinsics);

// Create placeholder values here.
// let cache_gen = {
// use wasmer_runtime_core::backend::{sys::Memory, CacheGen};
// use wasmer_runtime_core::cache::Error as CacheError;
// use wasmer_runtime_core::module::ModuleInfo;

// struct Placeholder;

// impl CacheGen for Placeholder {
// fn generate_cache(
// &self,
// _module: &ModuleInner,
// ) -> Result<(Box<ModuleInfo>, Box<[u8]>, Memory), CacheError> {
// unimplemented!()
// }
// }

// Box::new(Placeholder)
// };

Ok(ModuleInner {
runnable_module: Box::new(backend),
cache_gen: Box::new(cache_gen),
Expand Down

0 comments on commit c3ef1f8

Please sign in to comment.