Skip to content

Commit

Permalink
chore: remove unused action_index
Browse files Browse the repository at this point in the history
  • Loading branch information
thounyy committed Nov 15, 2024
1 parent 34ab7e2 commit d5f82d7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/protocol/sources/executable.move
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,6 @@ public fun issuer(executable: &Executable): &Issuer {
&executable.issuer
}

// === Private functions ===

fun action_index<Action: store>(executable: &Executable): u64 {
let mut idx = executable.start_idx + executable.actions.length(); // end index
executable.actions.length().do!(|mut i| {
i = i + executable.start_idx;
if (executable.actions.contains_with_type<u64, Action>(i)) idx = i;
// returns length if not found
});
assert!(idx != executable.start_idx + executable.actions.length(), EActionNotFound);

idx
}

// === Package functions ===

/// Is only called from the account module
Expand Down

0 comments on commit d5f82d7

Please sign in to comment.