Skip to content

Commit

Permalink
chore: remove unused variables on Length tool (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-stout authored Dec 3, 2024
1 parent 25bcef9 commit befb9ab
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/tools/src/tools/annotation/LengthTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,6 @@ class LengthTool extends AnnotationTool {

hideElementCursor(element);

const enabledElement = getEnabledElement(element);
const { renderingEngine } = enabledElement;

triggerAnnotationRenderForViewportIds(viewportIdsToRender);

evt.preventDefault();
Expand Down Expand Up @@ -387,9 +384,6 @@ class LengthTool extends AnnotationTool {

hideElementCursor(element);

const enabledElement = getEnabledElement(element);
const { renderingEngine } = enabledElement;

triggerAnnotationRenderForViewportIds(viewportIdsToRender);

evt.preventDefault();
Expand All @@ -415,9 +409,6 @@ class LengthTool extends AnnotationTool {
this._deactivateDraw(element);
resetElementCursor(element);

const enabledElement = getEnabledElement(element);
const { renderingEngine } = enabledElement;

if (
this.isHandleOutsideImage &&
this.configuration.preventHandleOutsideImage
Expand All @@ -438,7 +429,6 @@ class LengthTool extends AnnotationTool {
_dragCallback = (evt: EventTypes.InteractionEventType): void => {
this.isDrawing = true;
const eventDetail = evt.detail;
const { element } = eventDetail;

const { annotation, viewportIdsToRender, handleIndex, movingTextBox } =
this.editData;
Expand Down

0 comments on commit befb9ab

Please sign in to comment.