Skip to content

Commit 94cd025

Browse files
committed
convert: Remove unused member from GenieObjectContainer.
1 parent 6c26806 commit 94cd025

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

openage/convert/entity_object/conversion/aoc/genie_object_container.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2024 the openage authors. See copying.md for legal info.
1+
# Copyright 2019-2025 the openage authors. See copying.md for legal info.
22
#
33
# pylint: disable=too-many-instance-attributes,too-few-public-methods
44

@@ -84,8 +84,6 @@ def __init__(self):
8484

8585
# Keys are the ID of the first unit in line
8686
self.unit_lines: dict[int, GenieUnitLineGroup] = {}
87-
# Keys are the line ID of the unit connection
88-
self.unit_lines_vertical_ref: dict[int, GenieUnitLineGroup] = {}
8987
self.building_lines: dict[int, GenieBuildingLineGroup] = {}
9088
self.task_groups: dict[int, GenieUnitTaskGroup] = {}
9189
self.transform_groups: dict[int, GenieUnitTransformGroup] = {}

openage/convert/processor/conversion/swgbcc/main/groups/villager_group.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def create_villager_groups(full_data_set: GenieObjectContainer) -> None:
1818
villager group.
1919
2020
:param full_data_set: GenieObjectContainer instance that
21-
contains all relevant data for the conversion
22-
process.
21+
contains all relevant data for the conversion
22+
process.
2323
"""
2424
units = full_data_set.genie_units
2525
task_group_ids = set()
@@ -61,8 +61,6 @@ def create_villager_groups(full_data_set: GenieObjectContainer) -> None:
6161
# Create the villager task group
6262
villager = GenieVillagerGroup(118, (1,), full_data_set)
6363
full_data_set.unit_lines.update({villager.get_id(): villager})
64-
# TODO: Find the line id elsewhere
65-
full_data_set.unit_lines_vertical_ref.update({36: villager})
6664
full_data_set.villager_groups.update({villager.get_id(): villager})
6765
for unit_id in unit_ids:
6866
full_data_set.unit_ref.update({unit_id: villager})

0 commit comments

Comments
 (0)