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

Unified Diff: chrome/browser/devtools/adb/android_rsa.cc

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
Index: chrome/browser/devtools/adb/android_rsa.cc
diff --git a/chrome/browser/devtools/adb/android_rsa.cc b/chrome/browser/devtools/adb/android_rsa.cc
index 5333632cff06cffbbe1b0a7ce36cdaa42545a063..371c4330583f105eff5dc7cb695cf096cb21a4b8 100644
--- a/chrome/browser/devtools/adb/android_rsa.cc
+++ b/chrome/browser/devtools/adb/android_rsa.cc
@@ -76,30 +76,12 @@ void BnFree(uint32* a) {
delete[] a;
}
-void BnPrint(const std::string& title, uint32_t* a) {
- int i = kBigIntSize - 1;
- fprintf(stderr, "%s: ", title.c_str());
- while (!a[i]) --i;
- for (; i >= 0; --i)
- fprintf(stderr, "%08x", a[i]);
- fprintf(stderr, "\n");
-}
-
uint32* BnCopy(uint32* a) {
uint32* result = new uint32[kBigIntSize];
memcpy(result, a, kBigIntSize * sizeof(uint32));
return result;
}
-void BnAdd(uint32* a, uint32* b) {
- uint64 carry_over = 0;
- for (size_t i = 0; i < kBigIntSize; ++i) {
- carry_over += static_cast<uint64>(a[i]) + b[i];
- a[i] = carry_over & kuint32max;
- carry_over >>= 32;
- }
-}
-
uint32* BnMul(uint32* a, uint32 b) {
uint32* result = BnNew();
uint64 carry_over = 0;
« no previous file with comments | « cc/resources/tile_priority.cc ('k') | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698