Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -49,20 +49,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