mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Removed unused String.prototype.pad_left().
Unused since its introduction in dd5320d1d5
.
This commit is contained in:
parent
41e6ef28b0
commit
93d1f2d209
@ -156,14 +156,6 @@ function findPosY(obj) {
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// String object extensions
|
// 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) {
|
String.prototype.strptime = function(format) {
|
||||||
var split_format = format.split(/[.\-/]/);
|
var split_format = format.split(/[.\-/]/);
|
||||||
var date = this.split(/[.\-/]/);
|
var date = this.split(/[.\-/]/);
|
||||||
|
Loading…
Reference in New Issue
Block a user