File tree 1 file changed +0
-24
lines changed
1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -32,27 +32,3 @@ selects = struct(
32
32
with_unmapped = _with_unmapped ,
33
33
NO_MATCHING_PLATFORM_TRIPLES = _SENTINEL ,
34
34
)
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
- )
You can’t perform that action at this time.
0 commit comments