Skip to content

Commit 05aed75

Browse files
committed
refactor: . Inline Query.parseTaskShowHideOptions()
1 parent b4a7088 commit 05aed75

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Query/Query.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,12 @@ ${statement.explainStatement(' ')}
312312
if (parseQueryShowHideOptions(this._queryLayoutOptions, option, hide)) {
313313
return;
314314
}
315-
if (this.parseTaskShowHideOptions(option, !hide)) {
315+
if (parseTaskShowHideOptions(this._taskLayoutOptions, option, !hide)) {
316316
return;
317317
}
318318
this.setError('do not understand hide/show option', new Statement(line, line));
319319
}
320320

321-
private parseTaskShowHideOptions(option: string, visible: boolean): boolean {
322-
const taskLayoutOptions = this._taskLayoutOptions;
323-
return parseTaskShowHideOptions(taskLayoutOptions, option, visible);
324-
}
325-
326321
private parseFilter(line: string, statement: Statement) {
327322
const filterOrError = FilterParser.parseFilter(line);
328323
if (filterOrError != null) {

0 commit comments

Comments
 (0)