remove redudant arg

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-03-06 19:59:38 -05:00
parent e3eab0dfa8
commit 035aa20790
2 changed files with 1 additions and 8 deletions

View File

@@ -17,7 +17,6 @@ pub struct NoteContents<'a> {
note_cache: &'a mut NoteCache, note_cache: &'a mut NoteCache,
txn: &'a Transaction, txn: &'a Transaction,
note: &'a Note<'a>, note: &'a Note<'a>,
note_key: NoteKey,
options: NoteOptions, options: NoteOptions,
action: Option<NoteAction>, action: Option<NoteAction>,
} }
@@ -30,7 +29,6 @@ impl<'a> NoteContents<'a> {
note_cache: &'a mut NoteCache, note_cache: &'a mut NoteCache,
txn: &'a Transaction, txn: &'a Transaction,
note: &'a Note, note: &'a Note,
note_key: NoteKey,
options: ui::note::NoteOptions, options: ui::note::NoteOptions,
) -> Self { ) -> Self {
NoteContents { NoteContents {
@@ -39,7 +37,6 @@ impl<'a> NoteContents<'a> {
note_cache, note_cache,
txn, txn,
note, note,
note_key,
options, options,
action: None, action: None,
} }
@@ -59,7 +56,6 @@ impl egui::Widget for &mut NoteContents<'_> {
self.note_cache, self.note_cache,
self.txn, self.txn,
self.note, self.note,
self.note_key,
self.options, self.options,
); );
self.action = result.action; self.action = result.action;
@@ -136,12 +132,12 @@ fn render_note_contents(
note_cache: &mut NoteCache, note_cache: &mut NoteCache,
txn: &Transaction, txn: &Transaction,
note: &Note, note: &Note,
note_key: NoteKey,
options: NoteOptions, options: NoteOptions,
) -> NoteResponse { ) -> NoteResponse {
#[cfg(feature = "profiling")] #[cfg(feature = "profiling")]
puffin::profile_function!(); puffin::profile_function!();
let note_key = note.key().expect("todo: implement non-db notes");
let selectable = options.has_selectable_text(); let selectable = options.has_selectable_text();
let mut images: Vec<(String, MediaCacheType)> = vec![]; let mut images: Vec<(String, MediaCacheType)> = vec![];
let mut note_action: Option<NoteAction> = None; let mut note_action: Option<NoteAction> = None;

View File

@@ -180,7 +180,6 @@ impl<'a> NoteView<'a> {
self.note_cache, self.note_cache,
txn, txn,
self.note, self.note,
note_key,
self.flags, self.flags,
)); ));
//}); //});
@@ -423,7 +422,6 @@ impl<'a> NoteView<'a> {
self.note_cache, self.note_cache,
txn, txn,
self.note, self.note,
note_key,
self.options(), self.options(),
); );
@@ -492,7 +490,6 @@ impl<'a> NoteView<'a> {
self.note_cache, self.note_cache,
txn, txn,
self.note, self.note,
note_key,
self.options(), self.options(),
); );
ui.add(&mut contents); ui.add(&mut contents);