Skip to content
Snippets Groups Projects
Commit 6f0ec432 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

remove unused TcpTx/RxPackets java & jni constants


(is this a valid change from hiddenapi perspective?)

Test: TreeHugger
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I2dc1c54c56a628770149382f1e25b90a71f62167
parent 66645a8d
No related branches found
No related tags found
No related merge requests found
......@@ -1121,8 +1121,4 @@ public class TrafficStats {
public static final int TYPE_TX_BYTES = 2;
/** {@hide} */
public static final int TYPE_TX_PACKETS = 3;
/** {@hide} */
public static final int TYPE_TCP_RX_PACKETS = 4;
/** {@hide} */
public static final int TYPE_TCP_TX_PACKETS = 5;
}
......@@ -47,8 +47,6 @@ enum StatsType {
RX_PACKETS = 1,
TX_BYTES = 2,
TX_PACKETS = 3,
TCP_RX_PACKETS = 4, // not supported, always returns UNKNOWN (-1)
TCP_TX_PACKETS = 5, // not supported, always returns UNKNOWN (-1)
};
static uint64_t getStatsType(Stats* stats, StatsType type) {
......@@ -61,8 +59,6 @@ static uint64_t getStatsType(Stats* stats, StatsType type) {
return stats->txBytes;
case TX_PACKETS:
return stats->txPackets;
case TCP_RX_PACKETS:
case TCP_TX_PACKETS:
default:
return UNKNOWN;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment