Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mschuwalow committed Jan 18, 2025
1 parent 37f91ee commit dd35ca2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions golem-common/src/model/exports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,6 @@ use golem_wasm_ast::analysis::{AnalysedExport, AnalysedFunction, AnalysedInstanc

use rib::{ParsedFunctionName, ParsedFunctionReference, ParsedFunctionSite};

// pub trait AnalysedExportExtensions {
// fn function_names(&self) -> Vec<String>;
// }

// impl AnalysedExportExtensions for AnalysedExport {
// fn function_names(&self) -> Vec<String> {
// match self {
// AnalysedExport::Instance(instance) => instance
// .functions
// .iter()
// .map(|function| format!("{}.{{{}}}", instance.name, function.name))
// .collect(),
// AnalysedExport::Function(function) => vec![function.name.clone()],
// }
// }
// }

fn instances(exports: &Vec<AnalysedExport>) -> Vec<AnalysedInstance> {
let mut instances = vec![];
for export in exports {
Expand Down

0 comments on commit dd35ca2

Please sign in to comment.