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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 3 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: chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
index becc43fcfc4c21de33bbd2b46ebd6813e77121bc..43ae74f928295b70a2e88c12646de4a36069e358 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
@@ -64,7 +64,6 @@
#include "chrome/browser/platform_util.h"
#endif
-using base::Time;
using content::BrowserThread;
namespace {
@@ -173,13 +172,6 @@ std::string GetNewTabBackgroundTilingCSS(
return ThemeService::TilingToString(repeat_mode);
}
-// Is the current time within a given date range?
-bool InDateRange(double begin, double end) {
- Time start_time = Time::FromDoubleT(begin);
- Time end_time = Time::FromDoubleT(end);
- return start_time < Time::Now() && end_time > Time::Now();
-}
-
} // namespace
NTPResourceCache::NTPResourceCache(Profile* profile)
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/browser/ui/webui/options/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698