Skip to content

Commit

Permalink
refactor: delete unused get_output_wasm_path canister info method (#2532
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ericswanson-dfinity authored Sep 2, 2022
1 parent e33bacc commit 710e931
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
14 changes: 0 additions & 14 deletions src/dfx/src/lib/canister_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,20 +222,6 @@ impl CanisterInfo {
.with_extension("js")
}

pub fn get_output_wasm_path(&self) -> Option<PathBuf> {
if let Ok(info) = self.as_info::<MotokoCanisterInfo>() {
Some(info.get_output_wasm_path().to_path_buf())
} else if let Ok(info) = self.as_info::<CustomCanisterInfo>() {
Some(info.get_output_wasm_path().to_path_buf())
} else if let Ok(info) = self.as_info::<AssetsCanisterInfo>() {
Some(info.get_output_wasm_path().to_path_buf())
} else if let Ok(info) = self.as_info::<RustCanisterInfo>() {
Some(info.get_output_wasm_path().to_path_buf())
} else {
None
}
}

pub fn get_output_idl_path(&self) -> Option<PathBuf> {
match &self.type_specific {
CanisterTypeProperties::Motoko { .. } => self
Expand Down
3 changes: 0 additions & 3 deletions src/dfx/src/lib/canister_info/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ impl AssetsCanisterInfo {
.map(|sp| self.input_root.join(sp))
.collect::<_>()
}
pub fn get_output_wasm_path(&self) -> &Path {
self.output_wasm_path.as_path()
}
pub fn get_output_idl_path(&self) -> &Path {
self.output_idl_path.as_path()
}
Expand Down

0 comments on commit 710e931

Please sign in to comment.