Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: intl/lib/date_symbol_data_http_request.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « intl/lib/date_symbol_data_file.dart ('k') | intl/lib/date_symbol_data_local.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: intl/lib/date_symbol_data_http_request.dart
diff --git a/intl/lib/date_symbol_data_http_request.dart b/intl/lib/date_symbol_data_http_request.dart
deleted file mode 100644
index 5e206f634d6f4a1d161c03af6fb01fc77014b53c..0000000000000000000000000000000000000000
--- a/intl/lib/date_symbol_data_http_request.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-/**
- * This file should be imported, along with date_format.dart in order to read
- * locale data via http requests to a web server..
- */
-library date_symbol_data_http_request;
-
-import 'dart:async';
-
-import 'date_symbols.dart';
-import 'intl.dart';
-import 'src/data/dates/locale_list.dart';
-import 'src/date_format_internal.dart';
-import 'src/http_request_data_reader.dart';
-import 'src/lazy_locale_data.dart';
-
-export 'src/data/dates/locale_list.dart';
-
-/**
- * This should be called for at least one [locale] before any date formatting
- * methods are called. It sets up the lookup for date symbols using [url].
- * The [url] parameter should end with a "/". For example,
- * "http://localhost:8000/dates/"
- */
-Future initializeDateFormatting(String locale, String url) {
- var reader = new HttpRequestDataReader('${url}symbols/');
- initializeDateSymbols(() => new LazyLocaleData(
- reader, _createDateSymbol, availableLocalesForDateFormatting));
- var reader2 = new HttpRequestDataReader('${url}patterns/');
- initializeDatePatterns(() =>
- new LazyLocaleData(reader2, (x) => x, availableLocalesForDateFormatting));
- var actualLocale = Intl.verifiedLocale(
- locale, (l) => availableLocalesForDateFormatting.contains(l));
- return initializeIndividualLocaleDateFormatting((symbols, patterns) {
- return Future.wait(
- [symbols.initLocale(actualLocale), patterns.initLocale(actualLocale)]);
- });
-}
-
-/** Defines how new date symbol entries are created. */
-DateSymbols _createDateSymbol(Map map) =>
- new DateSymbols.deserializeFromMap(map);
« no previous file with comments | « intl/lib/date_symbol_data_file.dart ('k') | intl/lib/date_symbol_data_local.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698