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

Unified Diff: third_party/WebKit/Source/devtools/front_end/platform/utilities.js

Issue 2651843003: DevTools: update console timestamp style (Closed)
Patch Set: nochange Created 3 years, 11 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: third_party/WebKit/Source/devtools/front_end/platform/utilities.js
diff --git a/third_party/WebKit/Source/devtools/front_end/platform/utilities.js b/third_party/WebKit/Source/devtools/front_end/platform/utilities.js
index 2b5b514d972c5f9821e38ec8082e5f3ad9cfc2a8..7d5bed337acbaf84861cdd884552999c3f13c37c 100644
--- a/third_party/WebKit/Source/devtools/front_end/platform/utilities.js
+++ b/third_party/WebKit/Source/devtools/front_end/platform/utilities.js
@@ -404,31 +404,6 @@ Date.prototype.toISO8601Compact = function() {
leadZero(this.getHours()) + leadZero(this.getMinutes()) + leadZero(this.getSeconds());
};
-/**
- * @return {string}
- */
-Date.prototype.toConsoleTime = function() {
- /**
- * @param {number} x
- * @return {string}
- */
- function leadZero2(x) {
- return (x > 9 ? '' : '0') + x;
- }
-
- /**
- * @param {number} x
- * @return {string}
- */
- function leadZero3(x) {
- return '0'.repeat(3 - x.toString().length) + x;
- }
-
- return this.getFullYear() + '-' + leadZero2(this.getMonth() + 1) + '-' + leadZero2(this.getDate()) + ' ' +
- leadZero2(this.getHours()) + ':' + leadZero2(this.getMinutes()) + ':' + leadZero2(this.getSeconds()) + '.' +
- leadZero3(this.getMilliseconds());
-};
-
Object.defineProperty(Array.prototype, 'remove', {
/**
* @param {!T} value

Powered by Google App Engine
This is Rietveld 408576698