Skip to content

Commit

Permalink
fix: remove unused code from TerraDrawAngledRectangleMode
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner committed Sep 25, 2024
1 parent c76049a commit f13564c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 382 deletions.
8 changes: 0 additions & 8 deletions src/modes/angled-rectangle/angled-rectangle.mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import {
BaseModeOptions,
CustomStyling,
} from "../base.mode";
import { PixelDistanceBehavior } from "../pixel-distance.behavior";
import { BehaviorConfig } from "../base.behavior";
import { coordinatesIdentical } from "../../geometry/coordinates-identical";
import { getDefaultStyling } from "../../util/styling";
import { FeatureId, GeoJSONStoreFeatures } from "../../store/store";
Expand Down Expand Up @@ -64,7 +62,6 @@ export class TerraDrawAngledRectangleMode extends TerraDrawBaseDrawMode<PolygonS
private keyEvents: TerraDrawPolygonModeKeyEvents;

// Behaviors
private pixelDistance!: PixelDistanceBehavior;
private cursors: Required<Cursors>;
private mouseMove = false;

Expand Down Expand Up @@ -113,11 +110,6 @@ export class TerraDrawAngledRectangleMode extends TerraDrawBaseDrawMode<PolygonS
this.onFinish(finishedId, { mode: this.mode, action: "draw" });
}

/** @internal */
registerBehaviors(config: BehaviorConfig) {
this.pixelDistance = new PixelDistanceBehavior(config);
}

/** @internal */
start() {
this.setStarted();
Expand Down
262 changes: 0 additions & 262 deletions src/modes/angled-rectangle/behaviors/closing-points.behavior.spec.ts

This file was deleted.

Loading

0 comments on commit f13564c

Please sign in to comment.