Skip to content

Commit 32baadd

Browse files
authored
Merge branch 'develop' into develop
2 parents a1e1d35 + 68bd0a8 commit 32baadd

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/indexers.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class NonApplicableIndexer extends Error {}
1111
* @remarks
1212
* Indexers organize paths into different structures (layers, tools, etc.)
1313
*/
14-
export class Indexer {
14+
export abstract class Indexer {
1515
/** The indexes being managed by this indexer */
1616
protected indexes: unknown;
1717

@@ -28,10 +28,7 @@ export class Indexer {
2828
* @param path - Path to sort
2929
* @throws Error if not implemented in subclass
3030
*/
31-
sortIn(path: Path): void {
32-
path;
33-
throw new Error('Method not implemented.');
34-
}
31+
abstract sortIn(path: Path): void;
3532
}
3633

3734
/**
@@ -162,7 +159,6 @@ export class ToolIndexer extends Indexer {
162159
*/
163160
sortIn(path: Path): void {
164161
if (path.travelType === PathType.Extrusion) {
165-
this.indexes;
166162
this.indexes[path.tool] = this.indexes[path.tool] || [];
167163
if (this.indexes[path.tool] === undefined) {
168164
this.indexes[path.tool] = [];

0 commit comments

Comments
 (0)