diff options
author | 2023-08-01 05:15:17 +0000 | |
---|---|---|
committer | 2023-08-01 05:15:17 +0000 | |
commit | c13fad8181c9df93bf63462309da2f488f374c7c (patch) | |
tree | ba0f7f0012b451789ae5a0bb1754ea7807add21d /android/paths.go | |
parent | a20d94732923e8e9028019873c9b5a315d6f2bdf (diff) |
Revert "Initial implementation of the bazel sandwich"
Revert submission 2651299-bazel_sandwich
Reason for revert: b/293883239, checking if this breaks the build.
Reverted changes: /q/submissionid:2651299-bazel_sandwich
Change-Id: I5f1d4bb13d21e6599f5c353dcaba2375f5ec234d
Diffstat (limited to 'android/paths.go')
-rw-r--r-- | android/paths.go | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/android/paths.go b/android/paths.go index 325a953c4..e16cb3781 100644 --- a/android/paths.go +++ b/android/paths.go @@ -1029,16 +1029,16 @@ func (p basePath) withRel(rel string) basePath { return p } -func (p basePath) RelativeToTop() Path { - ensureTestOnly() - return p -} - // SourcePath is a Path representing a file path rooted from SrcDir type SourcePath struct { basePath } +func (p SourcePath) RelativeToTop() Path { + ensureTestOnly() + return p +} + var _ Path = SourcePath{} func (p SourcePath) withRel(rel string) SourcePath { @@ -1126,16 +1126,6 @@ func PathForSource(ctx PathContext, pathComponents ...string) SourcePath { return path } -// PathForArbitraryOutput creates a path for the given components. Unlike PathForOutput, -// the path is relative to the root of the output folder, not the out/soong folder. -func PathForArbitraryOutput(ctx PathContext, pathComponents ...string) Path { - p, err := validatePath(pathComponents...) - if err != nil { - reportPathError(ctx, err) - } - return basePath{path: filepath.Join(ctx.Config().OutDir(), p)} -} - // MaybeExistentPathForSource joins the provided path components and validates that the result // neither escapes the source dir nor is in the out dir. // It does not validate whether the path exists. |