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:
Andrej730
2024-05-24 17:37:33 +05:00
parent ec28d3d0af
commit 6a8b59f2cf
2 changed files with 0 additions and 9 deletions
@@ -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