OSDN Git Service

Remove obsolete NetworkStats.Entry constructor.
authorLorenzo Colitti <lorenzo@google.com>
Sun, 21 Jan 2018 14:00:55 +0000 (23:00 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Sun, 21 Jan 2018 14:01:35 +0000 (23:01 +0900)
The only caller is telephony code, and it's being fixed in this
topic.

Bug: 35142602
Test: builds, boots
Change-Id: Ia77a1c2c297037f311c2355610c206cd8e3192c4

core/java/android/net/NetworkStats.java

index a85f80e..01b2b39 100644 (file)
@@ -160,13 +160,6 @@ public class NetworkStats implements Parcelable {
                     rxBytes, rxPackets, txBytes, txPackets, operations);
         }
 
-        // TODO: fix the the telephony code to pass DEFAULT_NETWORK_YES and remove this constructor.
-        public Entry(String iface, int uid, int set, int tag, int metered, int roaming,
-                 long rxBytes, long rxPackets, long txBytes, long txPackets, long operations) {
-            this(iface, uid, set, tag, metered, roaming, DEFAULT_NETWORK_YES, rxBytes, rxPackets,
-                    txBytes, txPackets, operations);
-        }
-
         public Entry(String iface, int uid, int set, int tag, int metered, int roaming,
                  int defaultNetwork, long rxBytes, long rxPackets, long txBytes, long txPackets,
                  long operations) {