From 5e2ec32802f8b3230670832d184f622e7df84fb0 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 11 Jan 2022 19:37:03 -0800 Subject: Remove deprecated ToMakePath calls ToMakePath is a noop now, remove the calls to it. Bug: 204136549 Test: m checkbuild Change-Id: Ib156846de395c37884b52f01ab10d05596296d00 --- build/art.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build/art.go') 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 { -- cgit v1.2.3-59-g8ed1b