浏览代码

Removed unused String.prototype.pad_left().

Unused since its introduction in dd5320d1d56ca7603747dd68871e72eee99d9e67.
Nick Pope 6 年之前
父节点
当前提交
93d1f2d209
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      django/contrib/admin/static/admin/js/core.js

+ 0 - 8
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(/[.\-/]/);