OSDN Git Service

Revert "Add default route constants to RouteInfo."
authorRobert Greenwalt <rgreenwalt@google.com>
Thu, 7 Mar 2013 20:11:18 +0000 (20:11 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 7 Mar 2013 20:11:18 +0000 (20:11 +0000)
This reverts commit 642eb63a65b58fb31635f264fc8ffe44fdf075c5

Change-Id: Ide6d7f3b935da41477b736ef0ef20ec9872563e1

core/java/android/net/RouteInfo.java

index 0c84f78..112e143 100644 (file)
@@ -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) {