Merge "remove unused TcpTx/RxPackets java & jni constants" into main

This commit is contained in:
Maciej Żenczykowski
2023-08-18 14:49:40 +00:00
committed by Gerrit Code Review
2 changed files with 0 additions and 8 deletions

View File

@@ -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;
}

View File

@@ -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(StatsValue* stats, StatsType type) {
@@ -61,8 +59,6 @@ static uint64_t getStatsType(StatsValue* stats, StatsType type) {
return stats->txBytes;
case TX_PACKETS:
return stats->txPackets;
case TCP_RX_PACKETS:
case TCP_TX_PACKETS:
default:
return UNKNOWN;
}