mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
remove unused code
1) core.enable_editing_task was outdated, tool.enable_editing_task doesn't exist 2) tool.get_task_outputs was duplicated
This commit is contained in:
@@ -155,10 +155,6 @@ def add_task(
|
||||
sequence.load_task_properties()
|
||||
|
||||
|
||||
def enable_editing_task(sequence, task=None) -> None:
|
||||
sequence.enable_editing_task(task)
|
||||
|
||||
|
||||
def enable_editing_task_attributes(sequence: tool.Sequence, task: ifcopenshell.entity_instance) -> None:
|
||||
sequence.load_task_attributes(task)
|
||||
sequence.enable_editing_task_attributes(task)
|
||||
|
||||
@@ -480,11 +480,6 @@ class Sequence(blenderbim.core.tool.Sequence):
|
||||
def get_direct_task_outputs(cls, task: ifcopenshell.entity_instance) -> list[ifcopenshell.entity_instance]:
|
||||
return ifcopenshell.util.sequence.get_direct_task_outputs(task)
|
||||
|
||||
@classmethod
|
||||
def get_task_outputs(cls, task):
|
||||
is_deep = bpy.context.scene.BIMWorkScheduleProperties.show_nested_outputs
|
||||
return ifcopenshell.util.sequence.get_task_outputs(task, is_deep)
|
||||
|
||||
@classmethod
|
||||
def enable_editing_work_calendar_times(cls, work_calendar: ifcopenshell.entity_instance) -> None:
|
||||
props = bpy.context.scene.BIMWorkCalendarProperties
|
||||
|
||||
Reference in New Issue
Block a user