Skip to content

Commit

Permalink
refactor: removed the comments and unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulkeswani101 committed Sep 16, 2024
1 parent 2e6219a commit 1e5a8b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ export interface IFieldAttributes {
export interface JSONViewProps {
logData: ILog;
}

export interface InfraMetricsSProps {
logData: ILog;
}
15 changes: 0 additions & 15 deletions frontend/src/lib/uPlotLib/getUplotChartOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,21 +241,6 @@ export const getUPlotChartOptions = ({
ctx.lineTo(x, u.bbox.top + u.bbox.height);
ctx.stroke();
ctx.setLineDash([]);
// ctx.font = 'bold 10px';
// ctx.textAlign = 'center';
// const label = new Date(
// verticalLineTimestamp * 1000,
// ).toLocaleTimeString();
// const labelText = `Logline: ${label}`;
// const labelY = u.bbox.top + 20;
// const labelWidth = ctx.measureText(labelText).width + 10;
// const labelHeight = 20;
// ctx.fillStyle = 'rgba(0, 0, 0, 0.6)';
// ctx.fillRect(x - labelWidth / 2, labelY - 15, labelWidth, labelHeight);

// ctx.fillStyle = 'white';
// ctx.fillText(labelText, x, labelY);

ctx.restore();
}
},
Expand Down

0 comments on commit 1e5a8b2

Please sign in to comment.