summaryrefslogtreecommitdiffstats
path: root/build/soong/generator/variables.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/soong/generator/variables.go')
-rw-r--r--build/soong/generator/variables.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/build/soong/generator/variables.go b/build/soong/generator/variables.go
deleted file mode 100644
index 8485f94b..00000000
--- a/build/soong/generator/variables.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package generator
-
-import (
- "fmt"
-
- "android/soong/android"
-)
-
-func lineageExpandVariables(ctx android.ModuleContext, in string) string {
- lineageVars := ctx.Config().VendorConfig("lineageVarsPlugin")
-
- out, err := android.Expand(in, func(name string) (string, error) {
- if lineageVars.IsSet(name) {
- return lineageVars.String(name), nil
- }
- // This variable is not for us, restore what the original
- // variable string will have looked like for an Expand
- // that comes later.
- return fmt.Sprintf("$(%s)", name), nil
- })
-
- if err != nil {
- ctx.PropertyErrorf("%s: %s", in, err.Error())
- return ""
- }
-
- return out
-}