Skip to content

Commit e0a58a8

Browse files
committed
Inline now-trivial function paginationEnabled
1 parent ec45db3 commit e0a58a8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

extensions/ql-vscode/src/view/result-tables.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ export class ResultTables
112112
return this.props.parsedResultSets.t === 'ExtensionParsed';
113113
}
114114

115-
/**
116-
* Holds if we actually should show pagination interface right now. This is
117-
* true as long as the result sets we're given are marked to permit it.
118-
*/
119-
paginationEnabled(): boolean {
120-
return this.paginationAllowed();
121-
}
122-
123115
constructor(props: ResultTablesProps) {
124116
super(props);
125117
this.state = ResultTables.getDerivedStateFromProps(props);
@@ -232,7 +224,7 @@ export class ResultTables
232224
}
233225

234226
renderButtons(): JSX.Element {
235-
if (this.props.parsedResultSets.t === 'ExtensionParsed' && this.paginationEnabled())
227+
if (this.props.parsedResultSets.t === 'ExtensionParsed' && this.paginationAllowed())
236228
return this.renderPageButtons(this.props.parsedResultSets);
237229
else
238230
return <span />;

0 commit comments

Comments
 (0)