Skip to content

Commit f759eed

Browse files
committed
Remove unsed parts of result-keys.ts
1 parent 5a69465 commit f759eed

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

extensions/ql-vscode/src/pure/result-keys.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ export interface PathNode extends ResultKeyBase {
3636

3737
export type ResultKey = Result | Path | PathNode;
3838

39-
/** Alias for `undefined` but more readable in some cases */
40-
export const none: PathNode | undefined = undefined;
41-
4239
/**
4340
* Looks up a specific result in a result set.
4441
*/
@@ -76,15 +73,6 @@ export function getPathNode(sarif: sarif.Log, key: PathNode): sarif.Location | u
7673
return path.locations[key.pathNodeIndex]?.location;
7774
}
7875

79-
/**
80-
* Returns true if the two keys are both `undefined` or contain the same set of indices.
81-
*/
82-
export function equals(key1: Partial<PathNode> | undefined, key2: Partial<PathNode> | undefined): boolean {
83-
if (key1 === key2) return true;
84-
if (key1 === undefined || key2 === undefined) return false;
85-
return key1.resultIndex === key2.resultIndex && key1.pathIndex === key2.pathIndex && key1.pathNodeIndex === key2.pathNodeIndex;
86-
}
87-
8876
/**
8977
* Returns true if the two keys contain the same set of indices and neither are `undefined`.
9078
*/

0 commit comments

Comments
 (0)