chore: Removes unused vars (#20194)

* chore: Removes unused vars

* Fixes lint

* Disables no-unused-vars for the operators
This commit is contained in:
Michael S. Molina
2022-06-15 11:01:45 -03:00
committed by GitHub
parent 0a50a9b380
commit d6f9fb5af1
18 changed files with 18 additions and 90 deletions

View File

@@ -26,9 +26,6 @@ import ModalTrigger from 'src/components/ModalTrigger';
import { EmptyWrapperType } from 'src/components/TableView/TableView';
interface EstimateQueryCostButtonProps {
dbId: number;
schema: string;
sql: string;
getEstimate: Function;
queryCostEstimate: Record<string, any>;
selectedText?: string;
@@ -37,9 +34,6 @@ interface EstimateQueryCostButtonProps {
}
const EstimateQueryCostButton = ({
dbId,
schema,
sql,
getEstimate,
queryCostEstimate = {},
selectedText,

View File

@@ -686,9 +686,6 @@ class SqlEditor extends React.PureComponent {
this.props.database.allows_cost_estimate && (
<span>
<EstimateQueryCostButton
dbId={qe.dbId}
schema={qe.schema}
sql={qe.sql}
getEstimate={this.getQueryCostEstimate}
queryCostEstimate={qe.queryCostEstimate}
selectedText={qe.selectedText}