Skip to content

Commit

Permalink
Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-dfinity committed Sep 19, 2024
1 parent 9e05b27 commit 103df8c
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/dfx/src/commands/canister/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use crate::lib::ic_attributes::{
use crate::lib::operations::canister::create_canister;
use crate::lib::root_key::fetch_root_key_if_needed;
use crate::util::clap::parsers::{
compute_allocation_parser, freezing_threshold_parser, log_visibility_parser,
memory_allocation_parser, reserved_cycles_limit_parser, wasm_memory_limit_parser,
compute_allocation_parser, freezing_threshold_parser, memory_allocation_parser,
reserved_cycles_limit_parser, wasm_memory_limit_parser,
};
use crate::util::clap::parsers::{cycle_amount_parser, icrc_subaccount_parser};
use crate::util::clap::subnet_selection_opt::SubnetSelectionOpt;
Expand All @@ -21,7 +21,6 @@ use clap::{ArgAction, Parser};
use dfx_core::error::identity::InstantiateIdentityFromNameError::GetIdentityPrincipalFailed;
use dfx_core::identity::CallSender;
use ic_agent::Identity as _;
use ic_utils::interfaces::management_canister::LogVisibility;
use icrc_ledger_types::icrc1::account::Subaccount;
use slog::info;

Expand Down Expand Up @@ -91,17 +90,6 @@ pub struct CanisterCreateOpts {
#[arg(long, value_parser = wasm_memory_limit_parser, hide = true)]
wasm_memory_limit: Option<Byte>,

/// Specifies who is allowed to read the canister's logs.
/// Can be either "controllers" or "public".
#[arg(
long,
value_parser = log_visibility_parser,
conflicts_with("add_log_viewer"),
conflicts_with("remove_log_viewer"),
conflicts_with("set_log_viewer"),
)]
log_visibility: Option<LogVisibility>,

#[command(flatten)]
log_visibility_opt: Option<LogVisibilityOpt>,

Expand Down

0 comments on commit 103df8c

Please sign in to comment.