Skip to content

Commit 2c486f5

Browse files
committed
refactor: Inline Field.parseGroupLine()
1 parent a53564c commit 2c486f5

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/Query/Filter/Field.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -264,16 +264,6 @@ export abstract class Field {
264264
return false;
265265
}
266266

267-
/**
268-
* Parse a 'group by' line and return a {@link Grouper} object.
269-
*
270-
* Returns null line does not match this field or is invalid,
271-
* or this field does not support grouping.
272-
*/
273-
public parseGroupLine(line: string): Grouper | null {
274-
return this.createGrouperFromLine(line);
275-
}
276-
277267
/**
278268
* Parse the line, and return either a {@link Grouper} object or null.
279269
*

src/Query/FilterParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function parseGrouper(line: string): Grouper | null {
101101
// See if any of the fields can parse the line.
102102
for (const creator of fieldCreators) {
103103
const field = creator();
104-
const grouper = field.parseGroupLine(line);
104+
const grouper = field.createGrouperFromLine(line);
105105
if (grouper) {
106106
return grouper;
107107
}

0 commit comments

Comments
 (0)