Skip to content

Commit

Permalink
chore: remove deprecated functions (#7029)
Browse files Browse the repository at this point in the history
  • Loading branch information
nventuro authored Jun 12, 2024
1 parent 612b972 commit bc80e85
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions noir-projects/aztec-nr/aztec/src/state_vars/private_set.nr
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,6 @@ impl<Note> PrivateSet<Note, &mut PrivateContext> {
}
// docs:end:insert

// DEPRECATED
fn assert_contains_and_remove(_self: Self, _note: &mut Note, _nonce: Field) {
assert(
false, "`assert_contains_and_remove` has been deprecated. Please call PXE.addNote() to add a note to the database. Then use PrivateSet.get_notes() and PrivateSet.remove() in your contract to verify and remove a note."
);
}

// DEPRECATED
fn assert_contains_and_remove_publicly_created(_self: Self, _note: &mut Note) {
assert(
false, "`assert_contains_and_remove_publicly_created` has been deprecated. Please call PXE.addNote() to add a note to the database. Then use PrivateSet.get_notes() and PrivateSet.remove() in your contract to verify and remove a note."
);
}

// docs:start:remove
pub fn remove<N, M>(self, note: Note) where Note: NoteInterface<N, M> {
let note_hash = compute_note_hash_for_read_request(note);
Expand Down

0 comments on commit bc80e85

Please sign in to comment.