remove deprecated getLocalizedStrftime alias

This commit is contained in:
Sami Samhuri 2013-01-05 15:06:17 -05:00
parent 64e4ed4834
commit 71195bba88
3 changed files with 3 additions and 8 deletions

View file

@ -42,8 +42,6 @@ And if you don't want to pass a localization object every time you can get a loc
For details just see `man 3 strftime` as the format specifiers are identical.
**NOTE:** `getLocalizedStrftime` is deprecated, use `localizedStrftime` instead. `getLocalizedStrftime` will be removed in 0.5 or 0.6.
Contributors
============

View file

@ -24,10 +24,7 @@
namespace.strftime = strftime;
namespace.strftimeUTC = strftimeUTC;
namespace.localizedStrftime = localizedStrftime;
namespace.getLocalizedStrftime = function(locale) {
console.log('[strftime] DEPRECATION NOTICE: getLocalizedStrftime is deprecated, use localizedStrftime instead');
return (namespace.getLocalizedStrftime = localizedStrftime)(locale);
};
////
function words(s) { return (s || '').split(' '); }

View file

@ -1,5 +1,5 @@
// Based on CoffeeScript by andrewschaaf on github
//
// TODO:
// - past and future dates, especially < 1900 and > 2100
// - locales
@ -32,7 +32,7 @@ assert.format = function(format, expected, expectedUTC, time) {
/// check exports
assert.fn(lib.strftime)
assert.fn(lib.strftimeUTC)
assert.fn(lib.getLocalizedStrftime)
assert.fn(lib.localizedStrftime)
/// time zones
testTimezone('P[DS]T')