Skip to content

Commit 72a6ea1

Browse files
committed
Remove unused write_create_xcode_overlay_script
Missed in 912ed78. Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent ff66d76 commit 72a6ea1

File tree

4 files changed

+2
-76
lines changed

4 files changed

+2
-76
lines changed

xcodeproj/internal/bazel_integration_files/BUILD

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,7 @@ _BASE_FILES = [
88
]
99

1010
filegroup(
11-
name = "bwx_integration_files",
12-
srcs = _BASE_FILES,
13-
# This is made public for internal use only
14-
visibility = ["//visibility:public"],
15-
)
16-
17-
filegroup(
18-
name = "bwb_integration_files",
11+
name = "bazel_integration_files",
1912
srcs = _BASE_FILES + [
2013
":renamed_swiftc_stub",
2114
":rsync_excludes",

xcodeproj/internal/bazel_integration_files/actions.bzl

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -54,51 +54,3 @@ def write_bazel_build_script(
5454
)
5555

5656
return output
57-
58-
def write_create_xcode_overlay_script(
59-
*,
60-
actions,
61-
generator_name,
62-
targets,
63-
template):
64-
"""Writes the `create_xcode_overlay.sh` script.
65-
66-
Args:
67-
actions: `ctx.actions`.
68-
generator_name: The name of the `xcodeproj` generator target.
69-
targets: A `dict` mapping target ids to `xcode_target`s.
70-
template: `xcodeproj/internal/templates/create_xcode_overlay.sh`.
71-
72-
Returns:
73-
The `File` for `create_xcode_overlay.sh`.
74-
"""
75-
output = actions.declare_file(
76-
"{}_bazel_integration_files/create_xcode_overlay.sh".format(
77-
generator_name,
78-
),
79-
)
80-
81-
roots = []
82-
for xcode_target in targets.values():
83-
generated_header = xcode_target.outputs.swift_generated_header
84-
if not generated_header:
85-
continue
86-
87-
path = generated_header.path
88-
build_dir = "$BUILD_DIR/{}".format(path)
89-
bazel_out = "$BAZEL_OUT{}".format(path[9:])
90-
91-
roots.append("""\
92-
{{"external-contents": "{build_dir}","name": "${{bazel_out_prefix}}{bazel_out}","type": "file"}}\
93-
""".format(bazel_out = bazel_out, build_dir = build_dir))
94-
95-
actions.expand_template(
96-
template = template,
97-
output = output,
98-
is_executable = True,
99-
substitutions = {
100-
"%roots%": ",".join(sorted(roots)),
101-
},
102-
)
103-
104-
return output

xcodeproj/internal/templates/create_xcode_overlay.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

xcodeproj/internal/xcodeproj_rule.bzl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ def _xcodeproj_attrs(
837837
cfg = "exec",
838838
allow_files = True,
839839
default = Label(
840-
"//xcodeproj/internal/bazel_integration_files:bwb_integration_files",
840+
"//xcodeproj/internal/bazel_integration_files",
841841
),
842842
),
843843
"_contents_xcworkspacedata": attr.label(
@@ -846,12 +846,6 @@ def _xcodeproj_attrs(
846846
"//xcodeproj/internal/templates:contents.xcworkspacedata",
847847
),
848848
),
849-
"_create_xcode_overlay_script_template": attr.label(
850-
allow_single_file = True,
851-
default = Label(
852-
"//xcodeproj/internal/templates:create_xcode_overlay.sh",
853-
),
854-
),
855849
"_extension_point_identifiers_parser": attr.label(
856850
cfg = "exec",
857851
default = Label("//tools/extension_point_identifiers_parser"),

0 commit comments

Comments
 (0)