Cleanup usages of CreateConfiguredJarList

After previous refactorings the CreateConfiguredJarList function is now
only used in tests and are supplied with a PathContext that will cause
ReportPathErrorf() to panic. So, this change removes the ctx parameter,
calls panic directly on any error and renames the method to make it
clear that it is for testing only.

Bug: 171479578
Test: m nothing
Change-Id: Icfb4bdfe720afa855b64ecf0e74a0b030882d029
This commit is contained in:
Paul Duffin
2020-10-23 21:23:44 +01:00
parent 7ccacaedbe
commit e10dfa4e3d
4 changed files with 15 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ import (
func testConfigWithBootJars(bp string, bootJars []string) android.Config {
config := testConfig(nil, bp, nil)
config.TestProductVariables.BootJars = android.CreateConfiguredJarList(nil, bootJars)
config.TestProductVariables.BootJars = android.CreateTestConfiguredJarList(bootJars)
return config
}