diff --git a/webview-ui/src/diagnostics_panel/prefabs/index.tsx b/webview-ui/src/diagnostics_panel/prefabs/index.tsx index 1c3d34d..eff81ce 100644 --- a/webview-ui/src/diagnostics_panel/prefabs/index.tsx +++ b/webview-ui/src/diagnostics_panel/prefabs/index.tsx @@ -15,8 +15,6 @@ import clientMemoryTab from './tabs/ClientMemory'; import clientEntitySystemTab from './tabs/ClientEntitySystems'; import clientProfilerScopesTab from './tabs/ClientCPUProfiler'; -import editorNetworkStatsTab from './tabs/EditorNetworkStats'; - export default [ worldTab, serverMemoryTab, @@ -31,5 +29,4 @@ export default [ clientEntitySystemTab, clientProfilerScopesTab, dynamicPropertyTab, - editorNetworkStatsTab, ]; diff --git a/webview-ui/src/diagnostics_panel/prefabs/tabs/EditorNetworkStats.tsx b/webview-ui/src/diagnostics_panel/prefabs/tabs/EditorNetworkStats.tsx deleted file mode 100644 index 46b0a38..0000000 --- a/webview-ui/src/diagnostics_panel/prefabs/tabs/EditorNetworkStats.tsx +++ /dev/null @@ -1,63 +0,0 @@ -import { useMemo } from 'react'; -import { MultipleStatisticProvider } from '../../StatisticProvider'; -import { TabPrefab, TabPrefabDataSource } from '../TabPrefab'; -import MinecraftMultiColumnStatisticTable from '../../controls/MinecraftMultiColumnStatisticTable'; -import { createStatResolver, StatisticType, YAxisType } from '../../StatisticResolver'; - -function EditorNetworkStatsContent(props: { onRunCommand: (command: string) => void }) { - const actions = useMemo( - () => [ - { label: 'Reset', onClick: () => props.onRunCommand(getPayloadMetricsCommandStr('clear')) }, - { label: 'Pause', onClick: () => props.onRunCommand(getPayloadMetricsCommandStr('pause')) }, - { - label: 'Resume', - onClick: () => props.onRunCommand(getPayloadMetricsCommandStr('resume')), - }, - ], - [props.onRunCommand], - ); - - return ( -