From 93d1f2d209294fc41fa811130271c88575ff9339 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Mon, 25 Jun 2018 14:26:42 +0100 Subject: [PATCH] Removed unused String.prototype.pad_left(). Unused since its introduction in dd5320d1d56ca7603747dd68871e72eee99d9e67. --- django/contrib/admin/static/admin/js/core.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/django/contrib/admin/static/admin/js/core.js b/django/contrib/admin/static/admin/js/core.js index 37e3b85551..8cd3609625 100644 --- a/django/contrib/admin/static/admin/js/core.js +++ b/django/contrib/admin/static/admin/js/core.js @@ -156,14 +156,6 @@ function findPosY(obj) { // ---------------------------------------------------------------------------- // String object extensions // ---------------------------------------------------------------------------- - String.prototype.pad_left = function(pad_length, pad_string) { - var new_string = this; - for (var i = 0; new_string.length < pad_length; i++) { - new_string = pad_string + new_string; - } - return new_string; - }; - String.prototype.strptime = function(format) { var split_format = format.split(/[.\-/]/); var date = this.split(/[.\-/]/);