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

Unified Diff: Tools/GardeningServer/scripts/ui.js

Issue 336033002: Cleanup some garden-o-matic cruft and dead code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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: Tools/GardeningServer/scripts/ui.js
diff --git a/Tools/GardeningServer/scripts/ui.js b/Tools/GardeningServer/scripts/ui.js
index 1cdb4a1ff2916cc174035602291caa91d735a8d6..a6203cf9e46bb89c19a7d40be5002c2555c2ed88 100644
--- a/Tools/GardeningServer/scripts/ui.js
+++ b/Tools/GardeningServer/scripts/ui.js
@@ -211,33 +211,6 @@ ui.onebar = base.extends('div', {
}
});
-// FIXME: Loading a module shouldn't set off a timer. The controller should kick this off.
-setInterval(function() {
- Array.prototype.forEach.call(document.querySelectorAll("time.relative"), function(time) {
- time.update && time.update();
- });
-}, config.kRelativeTimeUpdateFrequency);
-
-ui.RelativeTime = base.extends('time', {
- init: function()
- {
- this.className = 'relative';
- },
- date: function()
- {
- return this._date;
- },
- update: function()
- {
- this.textContent = this._date ? base.relativizeTime(this._date) : '';
- },
- setDate: function(date)
- {
- this._date = date;
- this.update();
- }
-});
-
ui.TreeStatus = base.extends('div', {
addStatus: function(name)
{

Powered by Google App Engine
This is Rietveld 408576698