remove no-op Connection.cachedNotes and Connection.cacheNote

This commit is contained in:
Hazelnoot 2025-04-01 12:28:16 -04:00
parent 3455223fec
commit 2e2ae21a09
12 changed files with 0 additions and 43 deletions

View file

@ -43,8 +43,6 @@ class AntennaChannel extends Channel {
if (this.isNoteMutedOrBlocked(note)) return;
this.connection.cacheNote(note);
this.send('note', note);
} else {
this.send(data.type, data.body);

View file

@ -66,8 +66,6 @@ class BubbleTimelineChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}

View file

@ -52,8 +52,6 @@ class ChannelChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}

View file

@ -63,8 +63,6 @@ class GlobalTimelineChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}

View file

@ -48,8 +48,6 @@ class HashtagChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}

View file

@ -84,8 +84,6 @@ class HomeTimelineChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}

View file

@ -101,8 +101,6 @@ class HybridTimelineChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}

View file

@ -73,8 +73,6 @@ class LocalTimelineChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}

View file

@ -39,7 +39,6 @@ class MainChannel extends Channel {
const note = await this.noteEntityService.pack(data.body.note.id, this.user, {
detail: true,
});
this.connection.cacheNote(note);
data.body.note = note;
}
break;
@ -52,7 +51,6 @@ class MainChannel extends Channel {
const note = await this.noteEntityService.pack(data.body.id, this.user, {
detail: true,
});
this.connection.cacheNote(note);
data.body = note;
}
break;

View file

@ -51,8 +51,6 @@ class RoleTimelineChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
} else {
this.send(data.type, data.body);

View file

@ -114,8 +114,6 @@ class UserListChannel extends Channel {
const clonedNote = await this.assignMyReaction(note);
await this.hideNote(clonedNote);
this.connection.cacheNote(clonedNote);
this.send('note', clonedNote);
}