[trivial] Remove dead code

Bug: N/A
Test: m
Change-Id: Ia278008249f5fc1cf5fd7d29e55e2e54f1d6f3ca
This commit is contained in:
Inseob Kim 2019-07-04 14:38:27 +09:00
parent e65d84c84c
commit 0ce291ebee
1 changed files with 3 additions and 6 deletions

View File

@ -113,8 +113,6 @@ type LibraryProperties struct {
}
type LibraryMutatedProperties struct {
VariantName string `blueprint:"mutated"`
// Build a static variant
BuildStatic bool `blueprint:"mutated"`
// Build a shared variant
@ -528,7 +526,7 @@ func (library *libraryDecorator) getLibName(ctx ModuleContext) string {
}
}
return name + library.MutatedProperties.VariantName
return name
}
var versioningMacroNamesListMutex sync.Mutex
@ -633,7 +631,7 @@ func (library *libraryDecorator) linkStatic(ctx ModuleContext,
library.objects = deps.WholeStaticLibObjs.Copy()
library.objects = library.objects.Append(objs)
fileName := ctx.ModuleName() + library.MutatedProperties.VariantName + staticLibraryExtension
fileName := ctx.ModuleName() + staticLibraryExtension
outputFile := android.PathForModuleOut(ctx, fileName)
builderFlags := flagsToBuilderFlags(flags)
@ -651,8 +649,7 @@ func (library *libraryDecorator) linkStatic(ctx ModuleContext,
TransformObjToStaticLib(ctx, library.objects.objFiles, builderFlags, outputFile, objs.tidyFiles)
library.coverageOutputFile = TransformCoverageFilesToZip(ctx, library.objects,
ctx.ModuleName()+library.MutatedProperties.VariantName)
library.coverageOutputFile = TransformCoverageFilesToZip(ctx, library.objects, ctx.ModuleName())
library.wholeStaticMissingDeps = ctx.GetMissingDependencies()