Remove unused functions in TrafficController

addInterface and hasUpdateDeviceStatsPermission are not used

Test: m & flush & boot
Bug: 217624062
Change-Id: I8a0f84f607a4f35512bc72e732df8f689b8ed1c9
This commit is contained in:
Motomu Utsumi
2022-06-16 07:33:26 +00:00
parent b8539f5c4a
commit bd94efc14a
2 changed files with 0 additions and 42 deletions

View File

@@ -45,11 +45,6 @@ class TrafficController {
*/
netdutils::Status swapActiveStatsMap() EXCLUDES(mMutex);
/*
* Add the interface name and index pair into the eBPF map.
*/
int addInterface(const char* name, uint32_t ifaceIndex);
int changeUidOwnerRule(ChildChain chain, const uid_t uid, FirewallRule rule, FirewallType type);
int removeUidOwnerRule(const uid_t uid);
@@ -185,8 +180,6 @@ class TrafficController {
// need to call back to system server for permission check.
std::set<uid_t> mPrivilegedUser GUARDED_BY(mMutex);
bool hasUpdateDeviceStatsPermission(uid_t uid) REQUIRES(mMutex);
// For testing
friend class TrafficControllerTest;
};