summaryrefslogtreecommitdiff
path: root/build/art.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2022-01-11 19:37:03 -0800
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-01-13 22:25:35 +0000
commit5e2ec32802f8b3230670832d184f622e7df84fb0 (patch)
treedb9ecf627d67d4c62bd7f29ed5d0bd88c20f84a4 /build/art.go
parent82e525a4f5f08a72ea1b6907c0a10dacb77a8a87 (diff)
Remove deprecated ToMakePath calls
ToMakePath is a noop now, remove the calls to it. Bug: 204136549 Test: m checkbuild Change-Id: Ib156846de395c37884b52f01ab10d05596296d00
Diffstat (limited to 'build/art.go')
-rw-r--r--build/art.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/art.go b/build/art.go
index a6cd944227..01cb44a89c 100644
--- a/build/art.go
+++ b/build/art.go
@@ -288,7 +288,7 @@ func testInstall(ctx android.InstallHookContext) {
defer artTestMutex.Unlock()
tests := testMap[name]
- tests = append(tests, ctx.Path().ToMakePath().String())
+ tests = append(tests, ctx.Path().String())
testMap[name] = tests
}
@@ -315,7 +315,7 @@ func addTestcasesFile(ctx android.InstallHookContext) {
defer artTestMutex.Unlock()
src := ctx.SrcPath().String()
- path := strings.Split(ctx.Path().ToMakePath().String(), "/")
+ path := strings.Split(ctx.Path().String(), "/")
// Keep last two parts of the install path (e.g. bin/dex2oat).
dst := strings.Join(path[len(path)-2:], "/")
if oldSrc, ok := testcasesContent[dst]; ok {