Remove dead code
This commit is contained in:
@@ -21,7 +21,7 @@ export type ColumnKind =
|
||||
| typeof ColumnKindCode.DATE
|
||||
| typeof ColumnKindCode.ENTITY;
|
||||
|
||||
export interface Column {
|
||||
interface Column {
|
||||
name?: string;
|
||||
kind: ColumnKind;
|
||||
}
|
||||
@@ -77,19 +77,12 @@ export interface WholeFileLocation {
|
||||
endColumn: never;
|
||||
}
|
||||
|
||||
export type ResolvableLocationValue = WholeFileLocation | LineColumnLocation;
|
||||
type ResolvableLocationValue = WholeFileLocation | LineColumnLocation;
|
||||
|
||||
export type UrlValue = ResolvableLocationValue | string;
|
||||
|
||||
export type CellValue = EntityValue | number | string | boolean;
|
||||
|
||||
export type ResultRow = CellValue[];
|
||||
|
||||
export interface RawResultSet {
|
||||
readonly schema: ResultSetSchema;
|
||||
readonly rows: readonly ResultRow[];
|
||||
}
|
||||
|
||||
export type BqrsKind =
|
||||
| "String"
|
||||
| "Float"
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { createRemoteFileRef } from "../common/location-link-utils";
|
||||
import { isUrlValueResolvable, UrlValue } from "./raw-result-types";
|
||||
import {
|
||||
LineColumnLocation,
|
||||
UrlValue as BqrsUrlValue,
|
||||
WholeFileLocation,
|
||||
} from "./bqrs-cli-types";
|
||||
|
||||
/**
|
||||
* Checks whether the file path is empty. If so, we do not want to render this location
|
||||
@@ -14,27 +9,6 @@ export function isEmptyPath(uriStr: string) {
|
||||
return !uriStr || uriStr === "file:/";
|
||||
}
|
||||
|
||||
export function isLineColumnLoc(loc: BqrsUrlValue): loc is LineColumnLocation {
|
||||
return (
|
||||
typeof loc !== "string" &&
|
||||
!isEmptyPath(loc.uri) &&
|
||||
"startLine" in loc &&
|
||||
"startColumn" in loc &&
|
||||
"endLine" in loc &&
|
||||
"endColumn" in loc
|
||||
);
|
||||
}
|
||||
|
||||
export function isWholeFileLoc(loc: BqrsUrlValue): loc is WholeFileLocation {
|
||||
return (
|
||||
typeof loc !== "string" && !isEmptyPath(loc.uri) && !isLineColumnLoc(loc)
|
||||
);
|
||||
}
|
||||
|
||||
export function isStringLoc(loc: BqrsUrlValue): loc is string {
|
||||
return typeof loc === "string";
|
||||
}
|
||||
|
||||
export function tryGetRemoteLocation(
|
||||
loc: UrlValue | undefined,
|
||||
fileLinkPrefix: string,
|
||||
|
||||
@@ -35,7 +35,7 @@ export const SELECT_TABLE_NAME = "#select";
|
||||
export const ALERTS_TABLE_NAME = "alerts";
|
||||
export const GRAPH_TABLE_NAME = "graph";
|
||||
|
||||
export type RawTableResultSet = {
|
||||
type RawTableResultSet = {
|
||||
t: "RawResultSet";
|
||||
resultSet: RawResultSet;
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@ export type Column = {
|
||||
kind: ColumnKind;
|
||||
};
|
||||
|
||||
export type UrlValueString = {
|
||||
type UrlValueString = {
|
||||
type: "string";
|
||||
value: string;
|
||||
};
|
||||
@@ -51,22 +51,22 @@ export type EntityValue = {
|
||||
id?: number;
|
||||
};
|
||||
|
||||
export type CellValueEntity = {
|
||||
type CellValueEntity = {
|
||||
type: "entity";
|
||||
value: EntityValue;
|
||||
};
|
||||
|
||||
export type CellValueNumber = {
|
||||
type CellValueNumber = {
|
||||
type: "number";
|
||||
value: number;
|
||||
};
|
||||
|
||||
export type CellValueString = {
|
||||
type CellValueString = {
|
||||
type: "string";
|
||||
value: string;
|
||||
};
|
||||
|
||||
export type CellValueBoolean = {
|
||||
type CellValueBoolean = {
|
||||
type: "boolean";
|
||||
value: boolean;
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ModeledMethod, ModeledMethodType } from "./modeled-method";
|
||||
import { UrlValueResolvable } from "../common/raw-result-types";
|
||||
|
||||
export type Call = {
|
||||
type Call = {
|
||||
readonly label: string;
|
||||
readonly url: Readonly<UrlValueResolvable>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user