Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abcalphabet committed Oct 1, 2024
1 parent 3944195 commit e010003
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@ pub fn initialize_mint(
}

/// Create a `UpdateMint` instruction
#[cfg(not(target_os = "solana"))]
pub fn update_mint(
token_program_id: &Pubkey,
mint: &Pubkey,
Expand Down Expand Up @@ -705,7 +704,6 @@ pub fn update_mint(
///
/// This instruction is suitable for use with a cross-program `invoke`
#[allow(clippy::too_many_arguments)]
#[cfg(not(target_os = "solana"))]
pub fn inner_configure_account(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -761,7 +759,6 @@ pub fn inner_configure_account(

/// Create a `ConfigureAccount` instruction
#[allow(clippy::too_many_arguments)]
#[cfg(not(target_os = "solana"))]
pub fn configure_account(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -808,7 +805,6 @@ pub fn configure_account(
}

/// Create an `ApproveAccount` instruction
#[cfg(not(target_os = "solana"))]
pub fn approve_account(
token_program_id: &Pubkey,
account_to_approve: &Pubkey,
Expand Down Expand Up @@ -837,7 +833,6 @@ pub fn approve_account(
/// Create an inner `EmptyAccount` instruction
///
/// This instruction is suitable for use with a cross-program `invoke`
#[cfg(not(target_os = "solana"))]
pub fn inner_empty_account(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -883,7 +878,6 @@ pub fn inner_empty_account(
}

/// Create a `EmptyAccount` instruction
#[cfg(not(target_os = "solana"))]
pub fn empty_account(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -925,7 +919,6 @@ pub fn empty_account(

/// Create a `Deposit` instruction
#[allow(clippy::too_many_arguments)]
#[cfg(not(target_os = "solana"))]
pub fn deposit(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -962,7 +955,6 @@ pub fn deposit(
///
/// This instruction is suitable for use with a cross-program `invoke`
#[allow(clippy::too_many_arguments)]
#[cfg(not(target_os = "solana"))]
pub fn inner_withdraw(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -1041,7 +1033,6 @@ pub fn inner_withdraw(

/// Create a `Withdraw` instruction
#[allow(clippy::too_many_arguments)]
#[cfg(not(target_os = "solana"))]
pub fn withdraw(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -1114,7 +1105,6 @@ pub fn withdraw(
///
/// This instruction is suitable for use with a cross-program `invoke`
#[allow(clippy::too_many_arguments)]
#[cfg(not(target_os = "solana"))]
pub fn inner_transfer(
token_program_id: &Pubkey,
source_token_account: &Pubkey,
Expand Down Expand Up @@ -1210,7 +1200,6 @@ pub fn inner_transfer(

/// Create a `Transfer` instruction
#[allow(clippy::too_many_arguments)]
#[cfg(not(target_os = "solana"))]
pub fn transfer(
token_program_id: &Pubkey,
source_token_account: &Pubkey,
Expand Down Expand Up @@ -1306,7 +1295,6 @@ pub fn transfer(
/// Create a inner `ApplyPendingBalance` instruction
///
/// This instruction is suitable for use with a cross-program `invoke`
#[cfg(not(target_os = "solana"))]
pub fn inner_apply_pending_balance(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down Expand Up @@ -1338,7 +1326,6 @@ pub fn inner_apply_pending_balance(
}

/// Create a `ApplyPendingBalance` instruction
#[cfg(not(target_os = "solana"))]
pub fn apply_pending_balance(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand All @@ -1357,7 +1344,6 @@ pub fn apply_pending_balance(
) // calls check_program_account
}

#[cfg(not(target_os = "solana"))]
fn enable_or_disable_balance_credits(
instruction: ConfidentialTransferInstruction,
token_program_id: &Pubkey,
Expand Down Expand Up @@ -1385,7 +1371,6 @@ fn enable_or_disable_balance_credits(
}

/// Create a `EnableConfidentialCredits` instruction
#[cfg(not(target_os = "solana"))]
pub fn enable_confidential_credits(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand All @@ -1402,7 +1387,6 @@ pub fn enable_confidential_credits(
}

/// Create a `DisableConfidentialCredits` instruction
#[cfg(not(target_os = "solana"))]
pub fn disable_confidential_credits(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand All @@ -1419,7 +1403,6 @@ pub fn disable_confidential_credits(
}

/// Create a `EnableNonConfidentialCredits` instruction
#[cfg(not(target_os = "solana"))]
pub fn enable_non_confidential_credits(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand All @@ -1436,7 +1419,6 @@ pub fn enable_non_confidential_credits(
}

/// Create a `DisableNonConfidentialCredits` instruction
#[cfg(not(target_os = "solana"))]
pub fn disable_non_confidential_credits(
token_program_id: &Pubkey,
token_account: &Pubkey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,8 @@ fn process_transfer(
}

/// Processes the changes for the sending party of a confidential transfer
#[allow(clippy::too_many_arguments)]
#[cfg(feature = "zk-ops")]
pub fn process_source_for_transfer(
fn process_source_for_transfer(
program_id: &Pubkey,
source_account_info: &AccountInfo,
mint_info: &AccountInfo,
Expand Down

0 comments on commit e010003

Please sign in to comment.