From 73f318c05a918ce2fcb1ab1e463ab69f038ef5c3 Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Thu, 8 Dec 2016 17:54:32 -0800 Subject: [PATCH] remove getDefaultTool from circle and ellipse since it was moved to a mapping file --- web/app/sketcher/shapes/circle.js | 7 ------- web/app/sketcher/shapes/ellipse.js | 7 ------- 2 files changed, 14 deletions(-) diff --git a/web/app/sketcher/shapes/circle.js b/web/app/sketcher/shapes/circle.js index 8b4ccff5..ccae1749 100644 --- a/web/app/sketcher/shapes/circle.js +++ b/web/app/sketcher/shapes/circle.js @@ -39,13 +39,6 @@ export class Circle extends SketchObject { normalDistance(aim) { return Math.abs(math.distance(aim.x, aim.y, this.c.x, this.c.y) - this.r.get()); } - - getDefaultTool(viewer, alternative) { - if (alternative) { - return super.getDefaultTool(viewer, alternative); - } else { - } - } } Circle.prototype._class = 'TCAD.TWO.Circle'; diff --git a/web/app/sketcher/shapes/ellipse.js b/web/app/sketcher/shapes/ellipse.js index 27c6f10e..da980445 100644 --- a/web/app/sketcher/shapes/ellipse.js +++ b/web/app/sketcher/shapes/ellipse.js @@ -89,13 +89,6 @@ export class Ellipse extends SketchObject { static findMinorRadius(majorRadius, pntRadius, pntAngle) { return Math.abs( Math.sin(pntAngle) / Math.sqrt(1 / sq(pntRadius) - sq(Math.cos(pntAngle) / majorRadius)) ); } - - getDefaultTool(viewer, alternative) { - if (alternative) { - return super.getDefaultTool(viewer, alternative); - } else { - } - } } Ellipse.prototype._class = 'TCAD.TWO.Ellipse';