[Pkg-javascript-commits] [dojo] 06/13: Remove patternChars method, since it's been deprecated in the CLDR. Refs #9489

David Prévot taffit at moszumanska.debian.org
Mon May 11 20:12:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.3.2
in repository dojo.

commit 97e5fa93ade4a35660969857326ac0968c2e0071
Author: Adam Peller <github at peller.org>
Date:   Thu Jul 2 02:06:06 2009 +0000

    Remove patternChars method, since it's been deprecated in the CLDR.  Refs #9489
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.3/dojo@18567 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 date/locale.js | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/date/locale.js b/date/locale.js
index a7622f6..f94a5de 100644
--- a/date/locale.js
+++ b/date/locale.js
@@ -608,27 +608,6 @@ dojo.date.locale.getNames = function(/*String*/item, /*String*/type, /*String?*/
 	return (label || lookup[props.join('-')]).concat(); /*Array*/
 };
 
-dojo.date.locale.displayPattern = function(/*String*/fixedPattern, /*String?*/locale){
-	// summary:
-	//	Provides a localized representation of a date/time pattern string
-	//
-	// description:
-	//	Takes a date/time pattern string like "MM/dd/yyyy" and substitutes
-	//	the letters appropriate to show a user in a particular locale, as
-	//	defined in [the CLDR specification](http://www.unicode.org/reports/tr35/tr35-4.html#Date_Format_Patterns)
-	// fixedPattern:
-	//	A date string using symbols from this set: "GyMdkHmsSEDFwWahKzYeugAZvcL"
-	// locale:
-	//	use a special locale, otherwise takes the default
-
-	var fixed = "GyMdkHmsSEDFwWahKzYeugAZvcL",
-		local = dojo.date.locale._getGregorianBundle(locale).patternChars;
-	return dojo.map(fixedPattern, function(c){
-		 var i = fixed.indexOf(c);
-		 return i < 0 ? c : local.charAt(i);
-	}).join(""); // String
-}
-
 dojo.date.locale.isWeekend = function(/*Date?*/dateObject, /*String?*/locale){
 	// summary:
 	//	Determines if the date falls on a weekend, according to local custom.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list