diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-02 17:00:22 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-02 17:00:22 +0000 |
commit | f349d9122d2fd8e5a37ddf8c722b1a4af33f7d8d (patch) | |
tree | c804fbdc0d1aafe7f6087e77c7955c46bc185262 | |
parent | 051c9757323919759d01d216e396fcc2a4bff855 (diff) | |
download | chromium_src-f349d9122d2fd8e5a37ddf8c722b1a4af33f7d8d.zip chromium_src-f349d9122d2fd8e5a37ddf8c722b1a4af33f7d8d.tar.gz chromium_src-f349d9122d2fd8e5a37ddf8c722b1a4af33f7d8d.tar.bz2 |
Remove a few unused functions.
I temporarily enabled -Wunused-function in build/common.gypi, sent a tryjob
to the linux clangbot, and fixed the fallout.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7548004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95097 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/base/x509_certificate.cc | 10 | ||||
-rw-r--r-- | ppapi/proxy/ppb_core_proxy.cc | 8 | ||||
-rw-r--r-- | webkit/plugins/ppapi/plugin_module.cc | 8 |
3 files changed, 0 insertions, 26 deletions
diff --git a/net/base/x509_certificate.cc b/net/base/x509_certificate.cc index 0c52de7..c4a7f51 100644 --- a/net/base/x509_certificate.cc +++ b/net/base/x509_certificate.cc @@ -32,16 +32,6 @@ namespace net { namespace { -// Returns true if this cert fingerprint is the null (all zero) fingerprint. -// We use this as a bogus fingerprint value. -bool IsNullFingerprint(const SHA1Fingerprint& fingerprint) { - for (size_t i = 0; i < arraysize(fingerprint.data); ++i) { - if (fingerprint.data[i] != 0) - return false; - } - return true; -} - // Indicates the order to use when trying to decode binary data, which is // based on (speculation) as to what will be most common -> least common const X509Certificate::Format kFormatDecodePriority[] = { diff --git a/ppapi/proxy/ppb_core_proxy.cc b/ppapi/proxy/ppb_core_proxy.cc index 06d5974..391a914 100644 --- a/ppapi/proxy/ppb_core_proxy.cc +++ b/ppapi/proxy/ppb_core_proxy.cc @@ -41,14 +41,6 @@ void ReleaseResource(PP_Resource resource) { PluginResourceTracker::GetInstance()->ReleaseResource(resource); } -void* MemAlloc(uint32_t num_bytes) { - return malloc(num_bytes); -} - -void MemFree(void* ptr) { - free(ptr); -} - double GetTime() { return TimeToPPTime(base::Time::Now()); } diff --git a/webkit/plugins/ppapi/plugin_module.cc b/webkit/plugins/ppapi/plugin_module.cc index 145ba4d..2b6b59a 100644 --- a/webkit/plugins/ppapi/plugin_module.cc +++ b/webkit/plugins/ppapi/plugin_module.cc @@ -146,14 +146,6 @@ void ReleaseResource(PP_Resource resource) { } } -void* MemAlloc(uint32_t num_bytes) { - return malloc(num_bytes); -} - -void MemFree(void* ptr) { - free(ptr); -} - PP_Time GetTime() { return TimeToPPTime(base::Time::Now()); } |