int BandwidthController::removeInterfaceAlert(const char *iface) { std::list<QuotaInfo>::iterator it; for (it = quotaIfaces.begin(); it != quotaIfaces.end(); it++) { if (it->ifaceName == iface) break; } if (it == quotaIfaces.end()) { ALOGE("No prior alert set for interface %s", iface); return -1; } return removeCostlyAlert(iface, &it->alert); }
int BandwidthController::removeSharedAlert(void) { return removeCostlyAlert("shared", &sharedAlertBytes); }