Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7316cd83 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Revert "Add default route constants to RouteInfo."

This reverts commit 642eb63a

Change-Id: Ide6d7f3b935da41477b736ef0ef20ec9872563e1
parent 642eb63a
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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) {