From 71195bba88d146e1bc206d979562903058236265 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 5 Jan 2013 15:06:17 -0500 Subject: [PATCH] remove deprecated getLocalizedStrftime alias --- Readme.md | 2 -- lib/index.js | 5 +---- test/test.js | 4 ++-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Readme.md b/Readme.md index b393b88..34de201 100644 --- a/Readme.md +++ b/Readme.md @@ -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 ============ diff --git a/lib/index.js b/lib/index.js index 51d83e4..4733bf0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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(' '); } diff --git a/test/test.js b/test/test.js index cb44643..079638f 100644 --- a/test/test.js +++ b/test/test.js @@ -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')