File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ] = [ ] ;
You can’t perform that action at this time.
0 commit comments