Delete assertSingleQuery

This commit is contained in:
Robert
2023-04-20 17:36:31 +01:00
parent dbf3f26d13
commit 14952cf7d3

View File

@@ -14,7 +14,6 @@ import {
} from "vscode";
import { QueryHistoryConfig } from "../config";
import {
showAndLogErrorMessage,
showAndLogExceptionWithTelemetry,
showAndLogInformationMessage,
showAndLogWarningMessage,
@@ -1047,17 +1046,6 @@ export class QueryHistoryManager extends DisposableObject {
return choice?.query;
}
private assertSingleQuery(
multiSelect: QueryHistoryInfo[] = [],
message = "Please select a single query.",
) {
if (multiSelect.length > 1) {
void showAndLogErrorMessage(message);
return false;
}
return true;
}
/**
* Updates the compare with source query. This ensures that all compare command invocations
* when exactly 2 queries are selected always have the proper _from_ query. Always use