Skip to content

Commit

Permalink
remove dead comment and fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Hansen authored and Alexander Hansen committed Jul 5, 2021
1 parent e769e5a commit 2190bce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,30 +785,6 @@ impl<'sc> TypedExpression<'sc> {
.find_module(&call_path.prefixes, false)
.ok()
.cloned();
/*
let type_method_result = {
let (module_path, type_name) =
call_path.prefixes.split_at(call_path.prefixes.len() - 1);
let type_name = type_name[0].clone();
let namespace = namespace.find_module(module_path, false).ok();
namespace
.map(|ns| ns.find_method_for_type_ident(&type_name, call_path.suffix))
.flatten()
};*/
/*
let enum_result_result = {
// an enum could be combined with a module path
// e.g.
// ```
// module1::MyEnum::Variant1
// ```
//
// so, in this case, the suffix is Variant1 and the prefixes are module1 and
// MyEnum. When looking for an enum, we just want the _last_ prefix entry in the
// namespace of the first 0..len-1 entries' module
namespace.find_enum(&all_path.prefixes[0])
};
*/
let enum_module_combined_result = {
// also, check if this is an enum _in_ another module.
let (module_path, enum_name) =
Expand Down
3 changes: 1 addition & 2 deletions forc/src/cli/commands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ use crate::ops::forc_deploy;
#[derive(Debug, StructOpt)]
pub struct Command {}


pub(crate) fn exec(command: Command) -> Result<(), String> {
match forc_deploy::deploy(command) {
Err(e) => Err(e.message),
_ => Ok(()),
}
}
}

0 comments on commit 2190bce

Please sign in to comment.