Skip to content

Commit 195b0ac

Browse files
committed
Fix complaints from find-dead-code linter
1 parent 86e3e25 commit 195b0ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extensions/ql-vscode/src/databases/local-databases/locations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function resolveWholeFileLocation(
7878
}
7979

8080
/** Returned from `showLocation` and related functions, to indicate which editor and location was ultimately highlighted. */
81-
export interface RevealedLocation {
81+
interface RevealedLocation {
8282
editor: TextEditor;
8383
location: Location;
8484
}

extensions/ql-vscode/src/view/results/result-table-utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function normalizeFileUri(uri: string): string {
131131
/**
132132
* Extracts all resolvable locations from a raw result row.
133133
*/
134-
export function getLocationsFromRawRow(
134+
function getLocationsFromRawRow(
135135
row: Row,
136136
): Array<{ uri: string; startLine?: number; endLine?: number }> {
137137
const locations: Array<{
@@ -176,7 +176,7 @@ function getLocationFromCell(
176176
/**
177177
* Extracts the primary location from a SARIF result.
178178
*/
179-
export function getLocationFromSarifResult(
179+
function getLocationFromSarifResult(
180180
result: Result,
181181
sourceLocationPrefix: string,
182182
): { uri: string; startLine?: number; endLine?: number } | undefined {
@@ -207,7 +207,7 @@ export function getLocationFromSarifResult(
207207
* Checks if a result location overlaps with the editor selection.
208208
* If the selection is empty (just a cursor), matches any result in the same file.
209209
*/
210-
export function doesLocationOverlapSelection(
210+
function doesLocationOverlapSelection(
211211
loc: { uri: string; startLine?: number; endLine?: number },
212212
selection: EditorSelection,
213213
): boolean {

0 commit comments

Comments
 (0)