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

Unified Diff: net/cert/x509_certificate_win.cc

Issue 1255073002: clang/win: Fix most -Wunused-function warnings in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mac Created 5 years, 5 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
Index: net/cert/x509_certificate_win.cc
diff --git a/net/cert/x509_certificate_win.cc b/net/cert/x509_certificate_win.cc
index 7be74edf621f4899bf0778d47d8d22a319dacb12..808a2847f9bd2287dc53c0838e216fea1e1e90e2 100644
--- a/net/cert/x509_certificate_win.cc
+++ b/net/cert/x509_certificate_win.cc
@@ -35,18 +35,6 @@ typedef crypto::ScopedCAPIHandle<
crypto::CAPIDestroyerWithFlags<HCERTSTORE,
CertCloseStore, 0> > ScopedHCERTSTORE;
-void ExplodedTimeToSystemTime(const base::Time::Exploded& exploded,
- SYSTEMTIME* system_time) {
- system_time->wYear = static_cast<WORD>(exploded.year);
- system_time->wMonth = static_cast<WORD>(exploded.month);
- system_time->wDayOfWeek = static_cast<WORD>(exploded.day_of_week);
- system_time->wDay = static_cast<WORD>(exploded.day_of_month);
- system_time->wHour = static_cast<WORD>(exploded.hour);
- system_time->wMinute = static_cast<WORD>(exploded.minute);
- system_time->wSecond = static_cast<WORD>(exploded.second);
- system_time->wMilliseconds = static_cast<WORD>(exploded.millisecond);
-}
-
//-----------------------------------------------------------------------------
// Decodes the cert's subjectAltName extension into a CERT_ALT_NAME_INFO

Powered by Google App Engine
This is Rietveld 408576698