Skip to content

Commit 2ac11d6

Browse files
committed
refactor: NO-JIRA: Clean up dead code.
1 parent d29de8d commit 2ac11d6

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install-frontend-ci-clean: install-frontend-ci
1818
cd web && npm cache clean --force
1919

2020
.PHONY: build-frontend
21-
build-frontend:
21+
build-frontend: lint-frontend
2222
cd web && npm run i18n && npm run build
2323

2424
.PHONY: start-frontend

devspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ dev:
3131
sync:
3232
- path: ./web/dist:/opt/app-root/web/dist
3333
startContainer: true
34+
printLogs: true
3435
command: ["make"]
3536
args: ["start-devspace-backend"]
3637
# Inject a lightweight SSH server into the container (so your IDE can connect to the remote dev env)

web/src/components/topology/Korrel8rTopology.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ const PADDING = 30;
9999
export const Korrel8rTopology: React.FC<{
100100
domains: korrel8r.Domains;
101101
graph: korrel8r.Graph;
102-
reFit?: boolean;
103102
loggingAvailable: boolean;
104103
netobserveAvailable: boolean;
105104
constraint: korrel8r.Constraint;
106-
}> = ({ domains, graph, reFit, loggingAvailable, netobserveAvailable, constraint }) => {
105+
}> = ({ domains, graph, loggingAvailable, netobserveAvailable, constraint }) => {
107106
const { t } = useTranslation('plugin__troubleshooting-panel-console-plugin');
108107
const navigate = useNavigate();
109108
const [selectedIds, setSelectedIds] = React.useState<string[]>([]);
@@ -254,8 +253,6 @@ export const Korrel8rTopology: React.FC<{
254253
return controller;
255254
}, [controller, selectionAction, componentFactory]);
256255

257-
if (reFit) controller2.getGraph().fit(PADDING);
258-
259256
return (
260257
<TopologyView
261258
controlBar={

web/src/time.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,3 @@ export const copyTime = (to: Date, from: Date): Date => {
7070

7171
// NOTE: Define our own isValidDate - don't import react modules in a plain .ts file.
7272
export const isValidDate = (date?: Date) => Boolean(date && !isNaN(date.valueOf()));
73-
74-
// FIXME validation

0 commit comments

Comments
 (0)