Dead and trivial code rip out (whoof)

This commit is contained in:
Jack Kingsman
2026-02-04 12:06:36 -08:00
parent edfc95a2e2
commit ad5e799a62
21 changed files with 28 additions and 744 deletions
+1 -2
View File
@@ -6,8 +6,7 @@
* Repeaters (type=2) always show 🛜 with a gray background.
*/
// Contact type constants (matches backend)
export const CONTACT_TYPE_REPEATER = 2;
import { CONTACT_TYPE_REPEATER } from '../types';
// Repeater avatar styling
const REPEATER_AVATAR = {
+1 -1
View File
@@ -13,7 +13,7 @@ const LAST_MESSAGE_KEY = 'remoteterm-lastMessageTime';
const SORT_ORDER_KEY = 'remoteterm-sortOrder';
export type ConversationTimes = Record<string, number>;
export type SortOrder = 'recent' | 'alpha';
type SortOrder = 'recent' | 'alpha';
// In-memory cache of last message times (loaded from server on init)
let lastMessageTimesCache: ConversationTimes = {};
-3
View File
@@ -43,6 +43,3 @@ export function clearLocalStorageFavorites(): void {
// localStorage might be disabled
}
}
// Re-export the Favorite type for convenience
export type { Favorite };
+1 -1
View File
@@ -14,7 +14,7 @@ const PUBKEY_PREFIX_LENGTH = 12;
* Extract the 12-character prefix from a public key.
* Works with both full keys and existing prefixes.
*/
export function getPubkeyPrefix(key: string): string {
function getPubkeyPrefix(key: string): string {
return key.slice(0, PUBKEY_PREFIX_LENGTH);
}
+1 -1
View File
@@ -1,6 +1,6 @@
import type { Conversation } from '../types';
export interface ParsedHashConversation {
interface ParsedHashConversation {
type: 'channel' | 'contact' | 'raw' | 'map' | 'visualizer';
name: string;
/** For map view: public key prefix to focus on */