Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: rlz/lib/rlz_lib.cc

Issue 2041413007: Remove unused function rlz_lib::PingFinancialServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « rlz/lib/rlz_lib.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/lib/rlz_lib.cc
diff --git a/rlz/lib/rlz_lib.cc b/rlz/lib/rlz_lib.cc
index 6d88e290cdd44fbb6616cc3d1f355fd65a334c56..081f80b0d6a5915b180ebbbdb79404b6f279e409 100644
--- a/rlz/lib/rlz_lib.cc
+++ b/rlz/lib/rlz_lib.cc
@@ -377,29 +377,6 @@ bool FormFinancialPingRequest(Product product, const AccessPoint* access_points,
return true;
}
-bool PingFinancialServer(Product product, const char* request, char* response,
- size_t response_buffer_size) {
- if (!response || response_buffer_size == 0)
- return false;
- response[0] = 0;
-
- // Check if the time is right to ping.
- if (!FinancialPing::IsPingTime(product, false))
- return false;
-
- // Send out the ping.
- std::string response_string;
- if (!FinancialPing::PingServer(request, &response_string))
- return false;
-
- if (response_string.size() >= response_buffer_size)
- return false;
-
- strncpy(response, response_string.c_str(), response_buffer_size);
- response[response_buffer_size - 1] = 0;
- return true;
-}
-
bool IsPingResponseValid(const char* response, int* checksum_idx) {
if (!response || !response[0])
return false;
« no previous file with comments | « rlz/lib/rlz_lib.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698