From eaf8d68dd1a26a2ee9dc6f337634692a28bcc9c2 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 17 Jul 2023 16:53:02 +0100 Subject: [PATCH] Remove all usages of NonClickableLocation outside of Location --- .../src/view/results/locations/SarifLocation.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx b/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx index d295d5348..1669a6b3e 100644 --- a/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx +++ b/extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx @@ -4,7 +4,6 @@ import { isLineColumnLoc, isWholeFileLoc } from "../../../common/bqrs-utils"; import { parseSarifLocation } from "../../../common/sarif-utils"; import { basename } from "path"; import { useMemo } from "react"; -import { NonClickableLocation } from "./NonClickableLocation"; import { Location } from "./Location"; /** @@ -31,12 +30,7 @@ export function SarifLocation({ [loc, sourceLocationPrefix], ); if (parsedLoc === undefined || "hint" in parsedLoc) { - return ( - - ); + return ; } else if (isWholeFileLoc(parsedLoc)) { return (