remove unused parameters
Bug: 21464654
Change-Id: Ia04c45f758bfa74e7516265347225e786314ef32
diff --git a/gatekeeper.cpp b/gatekeeper.cpp
index 20794b2..f18a490 100644
--- a/gatekeeper.cpp
+++ b/gatekeeper.cpp
@@ -59,7 +59,7 @@
return;
}
- if (ThrottleRequest(uid, user_id, timestamp, &record, response)) return;
+ if (ThrottleRequest(uid, timestamp, &record, response)) return;
if (!IncrementFailureRecord(uid, user_id, timestamp, &record)) {
response->error = ERROR_UNKNOWN;
@@ -135,7 +135,7 @@
return;
}
- if (ThrottleRequest(uid, user_id, timestamp, &record, response)) return;
+ if (ThrottleRequest(uid, timestamp, &record, response)) return;
if (!IncrementFailureRecord(uid, user_id, timestamp, &record)) {
response->error = ERROR_UNKNOWN;
@@ -251,7 +251,7 @@
return 0;
}
-bool GateKeeper::ThrottleRequest(uint32_t uid, secure_id_t user_id, uint64_t timestamp,
+bool GateKeeper::ThrottleRequest(uint32_t uid, uint64_t timestamp,
failure_record_t *record, GateKeeperMessage *response) {
uint64_t last_checked = record->last_checked_timestamp;
diff --git a/include/gatekeeper/gatekeeper.h b/include/gatekeeper/gatekeeper.h
index 33ffb9f..ff80b39 100644
--- a/include/gatekeeper/gatekeeper.h
+++ b/include/gatekeeper/gatekeeper.h
@@ -187,7 +187,7 @@
*
* Returns true if the request is in the throttle window.
*/
- bool ThrottleRequest(uint32_t uid, secure_id_t user_id, uint64_t timestamp,
+ bool ThrottleRequest(uint32_t uid, uint64_t timestamp,
failure_record_t *record, GateKeeperMessage *response);
};