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

Unified Diff: chrome/browser/ui/webui/history_ui.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/ui/webui/history_ui.cc
diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc
index 2dcaf3f3973fa28ecbbf6e540a75a7cd7f2b18bd..1d5c83cf341c4c7a742e4d3cad7acadfb640e171 100644
--- a/chrome/browser/ui/webui/history_ui.cc
+++ b/chrome/browser/ui/webui/history_ui.cc
@@ -217,20 +217,6 @@ void normalizeMonths(base::Time::Exploded* exploded) {
}
}
-// Returns the URL of a query result value.
-bool GetResultTimeAndUrl(Value* result, base::Time* time, string16* url) {
- DictionaryValue* result_dict;
- double timestamp;
-
- if (result->GetAsDictionary(&result_dict) &&
- result_dict->GetDouble("time", &timestamp) &&
- result_dict->GetString("url", url)) {
- *time = base::Time::FromJsTime(timestamp);
- return true;
- }
- return false;
-}
-
// Returns true if |entry| represents a local visit that had no corresponding
// visit on the server.
bool IsLocalOnlyResult(const BrowsingHistoryHandler::HistoryEntry& entry) {

Powered by Google App Engine
This is Rietveld 408576698