Remove deprecated ToMakePath calls
ToMakePath is a noop now, remove the calls to it.
Bug: 204136549
Test: m checkbuild
Change-Id: Ib156846de395c37884b52f01ab10d05596296d00
diff --git a/build/art.go b/build/art.go
index a6cd944..01cb44a 100644
--- a/build/art.go
+++ b/build/art.go
@@ -288,7 +288,7 @@
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 @@
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 {