summaryrefslogtreecommitdiff
path: root/android/sdk.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2022-11-25 12:18:24 +0000
committer Paul Duffin <paulduffin@google.com> 2022-12-12 17:33:05 +0000
commit458a15bd8af649af4f2d3752ba2e6d0d5c61350b (patch)
tree9c01f61fa5fd306ff9e570b13397d0dbc7daa219 /android/sdk.go
parente3ae3dd6f99a6f9758f1f8540e274285771e5e60 (diff)
Remove IsModuleInVersionedSdk
Previously, as all versioned sdk snapshots have been removed from Android.bp files this method would always return false. This change effectively replaces all calls to it with false, and then optimizes away any unused code. Bug: 260237150 Test: m nothing Change-Id: I1b717ee8345e807bd888451f6e7e3c3a0d391ee2
Diffstat (limited to 'android/sdk.go')
-rw-r--r--android/sdk.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/android/sdk.go b/android/sdk.go
index bd2f5d13f..5459a8aa0 100644
--- a/android/sdk.go
+++ b/android/sdk.go
@@ -216,16 +216,6 @@ func InitSdkAwareModule(m SdkAware) {
m.AddProperties(&base.properties)
}
-// IsModuleInVersionedSdk returns true if the module is an versioned sdk.
-func IsModuleInVersionedSdk(module Module) bool {
- if s, ok := module.(SdkAware); ok {
- if !s.ContainingSdk().Unversioned() {
- return true
- }
- }
- return false
-}
-
// SnapshotBuilder provides support for generating the build rules which will build the snapshot.
type SnapshotBuilder interface {
// CopyToSnapshot generates a rule that will copy the src to the dest (which is a snapshot