Skip to content

Commit 59341b1

Browse files
refactor: Deletes dead code
1 parent 137c800 commit 59341b1

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/datasource.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {
22
DataSourceInstanceSettings,
3-
CoreApp,
43
ScopedVars,
54
DataQueryRequest,
65
DataFrame,
@@ -11,14 +10,7 @@ import {
1110
} from '@grafana/data';
1211
import { DataSourceWithBackend, getTemplateSrv } from '@grafana/runtime';
1312

14-
import {
15-
HaystackQuery,
16-
OpsQuery,
17-
HaystackDataSourceOptions,
18-
DEFAULT_QUERY,
19-
HaystackVariableQuery,
20-
QueryType,
21-
} from './types';
13+
import { HaystackQuery, OpsQuery, HaystackDataSourceOptions, HaystackVariableQuery, QueryType } from './types';
2214
import { firstValueFrom } from 'rxjs';
2315

2416
export const queryTypes: QueryType[] = [
@@ -134,10 +126,6 @@ export class DataSource extends DataSourceWithBackend<HaystackQuery, HaystackDat
134126
}, []);
135127
}
136128

137-
getDefaultQuery(_: CoreApp): Partial<HaystackQuery> {
138-
return DEFAULT_QUERY;
139-
}
140-
141129
// Returns a DataQueryRequest that gets the available ops from the datasource
142130
// This applies a bunch of defaults because it's not a time series query
143131
private opsRequest(refId: string): DataQueryRequest<HaystackQuery> {

0 commit comments

Comments
 (0)