diff options
author | Chalard Jean <jchalard@google.com> | 2020-11-06 15:52:15 +0900 |
---|---|---|
committer | Chalard Jean <jchalard@google.com> | 2020-11-06 15:56:27 +0900 |
commit | c74389c5fc9689d1db53e690a5b03b29bf38f416 (patch) | |
tree | cb8704c2d4c29301303a760c5ecb35bf7120d78c /opengl/java | |
parent | a1c0a065803f763770ce3fcb1b740462dd13ee48 (diff) |
Remove useless code
The semantics of this block are such that restart will
only be false if all components of mArguments are null.
mArguments is a final array initialized in the
constructor of LegacyVpnRunner. The components of the
array are never overwritten (though the components of
those components are), and at least one of these
components will always be non-null (unless somebody
calls startLegacyVpnPrivileged with a non-existing
type, but that never happens).
For safety, this patch also adds a check so that
the code will crash early with a clear message if this
ever happens.
Test: FrameworksNetTests NetworkStackTests
Change-Id: I1f13aa08c6f1870c9610185b603af76f97c22bab
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions