Skip to content

Commit a345b1b

Browse files
committed
extract_utils: remove BpBuilder's get_partition() method
Change-Id: I9ceaa4ebb12e4d93a6055e0e10a276c4f706738c
1 parent a39a2bf commit a345b1b

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

extract_utils/bp_builder.py

-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ def set_partition(self, partition: str):
7474
self.__partition = partition
7575
return self
7676

77-
def get_partition(self):
78-
assert self.__partition is not None
79-
return self.__partition
80-
8177
def set_rule_name(self, rule_name: str):
8278
self.__rule_name = rule_name
8379
return self

extract_utils/makefiles.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ def write_elfs_package(
197197
bitses = []
198198
depses = []
199199

200-
partition = builder.get_partition()
201-
202200
for f in files:
203201
f_path = f'{ctx.vendor_prop_path}/{f.dst}'
204202

@@ -207,7 +205,7 @@ def write_elfs_package(
207205
return write_sh_package(files[0], builder, any_extension=True)
208206

209207
deps = remove_libs_so_ending(libs)
210-
deps = run_libs_fixup(ctx.lib_fixups, deps, partition)
208+
deps = run_libs_fixup(ctx.lib_fixups, deps, file.partition)
211209
machines.append(machine)
212210
bitses.append(bits)
213211
depses.append(deps)

0 commit comments

Comments
 (0)