diff options
| author | 2021-06-25 14:50:12 -0400 | |
|---|---|---|
| committer | 2021-07-07 16:29:09 -0400 | |
| commit | 187d5445e8cf63ab6d2b66324bc7b3494b3b824c (patch) | |
| tree | 9604c5b8afe32a9c6f5b1693f58dc2a136bcc1c9 /rust/rust.go | |
| parent | b2fc4700de464ad6d135db7d2f64d0e4e66f8471 (diff) | |
Remove IsDependencyRoot from interface
This is equivalent to Binary() -- reduce the interface and improve
clarity.
Test: go test soong tests
Change-Id: I770f5ce79fd4d888586d31ec5e67be88153626b6
Diffstat (limited to 'rust/rust.go')
| -rw-r--r-- | rust/rust.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/rust/rust.go b/rust/rust.go index a11a04c89..0a9869fdc 100644 --- a/rust/rust.go +++ b/rust/rust.go @@ -172,13 +172,6 @@ func (mod *Module) SanitizePropDefined() bool { return mod.sanitize != nil && mod.compiler != nil } -func (mod *Module) IsDependencyRoot() bool { - if mod.compiler != nil { - return mod.compiler.isDependencyRoot() - } - panic("IsDependencyRoot called on a non-compiler Rust module") -} - func (mod *Module) IsPrebuilt() bool { if _, ok := mod.compiler.(*prebuiltLibraryDecorator); ok { return true @@ -449,7 +442,6 @@ type compiler interface { SetDisabled() stdLinkage(ctx *depsContext) RustLinkage - isDependencyRoot() bool strippedOutputFilePath() android.OptionalPath } |