Draft: Edit, Remove all the empty pass functions
Remove unused functions. Since GuiTools objects inherit from the GuiTools class, they do not need those placeholders.
This commit is contained in:
@@ -176,12 +176,6 @@ class DraftRectangleGuiTools(GuiTools):
|
||||
elif node_idx == 2:
|
||||
obj.Height = DraftVecUtils.project(v, App.Vector(0,1,0)).Length
|
||||
|
||||
def get_edit_point_context_menu(self, obj, node_idx):
|
||||
pass
|
||||
|
||||
def evaluate_context_menu_action(self, edit_command, obj, node_idx, action):
|
||||
pass
|
||||
|
||||
|
||||
class DraftCircleGuiTools(GuiTools):
|
||||
|
||||
@@ -414,12 +408,6 @@ class DraftEllipseGuiTools(GuiTools):
|
||||
else:
|
||||
obj.MinorRadius = obj.MajorRadius
|
||||
|
||||
def get_edit_point_context_menu(self, obj, node_idx):
|
||||
pass
|
||||
|
||||
def evaluate_context_menu_action(self, edit_command, obj, node_idx, action):
|
||||
pass
|
||||
|
||||
|
||||
class DraftPolygonGuiTools(GuiTools):
|
||||
|
||||
@@ -444,12 +432,6 @@ class DraftPolygonGuiTools(GuiTools):
|
||||
obj.Radius = v.Length
|
||||
obj.recompute()
|
||||
|
||||
def get_edit_point_context_menu(self, obj, node_idx):
|
||||
pass
|
||||
|
||||
def evaluate_context_menu_action(self, edit_command, obj, node_idx, action):
|
||||
pass
|
||||
|
||||
|
||||
class DraftDimensionGuiTools(GuiTools):
|
||||
|
||||
@@ -475,12 +457,6 @@ class DraftDimensionGuiTools(GuiTools):
|
||||
elif node_idx == 3:
|
||||
obj.ViewObject.TextPosition = v
|
||||
|
||||
def get_edit_point_context_menu(self, obj, node_idx):
|
||||
pass
|
||||
|
||||
def evaluate_context_menu_action(self, edit_command, obj, node_idx, action):
|
||||
pass
|
||||
|
||||
|
||||
class DraftBezCurveGuiTools(GuiTools):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user