Revert "Add default route constants to RouteInfo."
This reverts commit e610dd3e58
Change-Id: Ide6d7f3b935da41477b736ef0ef20ec9872563e1
This commit is contained in:
committed by
Android (Google) Code Review
parent
e610dd3e58
commit
18fb57af46
@@ -45,18 +45,6 @@ public class RouteInfo implements Parcelable {
|
||||
private final boolean mIsDefault;
|
||||
private final boolean mIsHost;
|
||||
|
||||
/**
|
||||
* The IPv4 default route.
|
||||
*/
|
||||
public static final RouteInfo IPV4_DEFAULT = new RouteInfo(
|
||||
new LinkAddress(Inet4Address.ANY, 0));
|
||||
|
||||
/**
|
||||
* The IPv6 default route.
|
||||
*/
|
||||
public static final RouteInfo IPV6_DEFAULT = new RouteInfo(
|
||||
new LinkAddress(Inet6Address.ANY, 0));
|
||||
|
||||
public RouteInfo(LinkAddress destination, InetAddress gateway) {
|
||||
if (destination == null) {
|
||||
if (gateway != null) {
|
||||
|
||||
Reference in New Issue
Block a user