Skip to content

Commit 6517b76

Browse files
authored
Removed unused 'select_with_or' (#2562)
Doesn't look used anymore, this was from 2 years ago
1 parent f8ffba5 commit 6517b76

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

crate_universe/private/selects.bzl

-24
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,3 @@ selects = struct(
3232
with_unmapped = _with_unmapped,
3333
NO_MATCHING_PLATFORM_TRIPLES = _SENTINEL,
3434
)
35-
36-
# TODO: No longer used by the serde_starlark-based renderer. Delete after all
37-
# BUILD files using it have been regenerated.
38-
#
39-
# buildifier: disable=function-docstring
40-
def select_with_or(input_dict, no_match_error = ""):
41-
output_dict = {}
42-
for (key, value) in input_dict.items():
43-
if type(key) == type(()):
44-
for config_setting in key:
45-
if config_setting in output_dict:
46-
output_dict[config_setting].extend(value)
47-
else:
48-
output_dict[config_setting] = list(value)
49-
elif key in output_dict:
50-
output_dict[key].extend(value)
51-
else:
52-
output_dict[key] = list(value)
53-
54-
# return a dict with deduped lists
55-
return select(
56-
{key: depset(value).to_list() for key, value in output_dict.items()},
57-
no_match_error = no_match_error,
58-
)

0 commit comments

Comments
 (0)