refactor: remove unused commands

This commit is contained in:
Alejandro Gómez
2025-12-13 22:58:22 +01:00
parent d877e51317
commit c287cff413
4 changed files with 6 additions and 51 deletions

View File

@@ -361,18 +361,6 @@ function useDynamicTitle(window: WindowInstance): WindowTitleData {
return getCommandDescription(props.cmd) || `${props.cmd} manual`;
}, [appId, props]);
// Feed title
const feedTitle = useMemo(() => {
if (appId !== "feed") return null;
return "Feed";
}, [appId]);
// Win viewer title
const winTitle = useMemo(() => {
if (appId !== "win") return null;
return "Windows";
}, [appId]);
// Kinds viewer title
const kindsTitle = useMemo(() => {
if (appId !== "kinds") return null;
@@ -448,14 +436,6 @@ function useDynamicTitle(window: WindowInstance): WindowTitleData {
// Use the specific command's icon, not the generic "man" icon
icon = getCommandIcon(props.cmd);
tooltip = rawCommand;
} else if (feedTitle) {
title = feedTitle;
icon = getCommandIcon("feed");
tooltip = rawCommand;
} else if (winTitle) {
title = winTitle;
icon = getCommandIcon("win");
tooltip = rawCommand;
} else if (kindsTitle) {
title = kindsTitle;
icon = getCommandIcon("kinds");
@@ -487,8 +467,6 @@ function useDynamicTitle(window: WindowInstance): WindowTitleData {
decodeTitle,
nipTitle,
manTitle,
feedTitle,
winTitle,
kindsTitle,
debugTitle,
connTitle,

View File

@@ -12,8 +12,6 @@ import DecodeViewer from "./DecodeViewer";
import { RelayViewer } from "./RelayViewer";
import KindRenderer from "./KindRenderer";
import KindsViewer from "./KindsViewer";
import Feed from "./nostr/Feed";
import { WinViewer } from "./WinViewer";
import { DebugViewer } from "./DebugViewer";
import ConnViewer from "./ConnViewer";
@@ -94,12 +92,6 @@ export function WindowRenderer({ window, onClose }: WindowRendererProps) {
case "nip":
content = <NipRenderer nipId={window.props.number} />;
break;
case "feed":
content = <Feed className="h-full w-full overflow-auto" />;
break;
case "win":
content = <WinViewer />;
break;
case "kind":
content = <KindRenderer kind={parseInt(window.props.number)} />;
break;