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

Unified Diff: pkg/intl/lib/date_symbol_data_file.dart

Issue 814113004: Pull args, intl, logging, shelf, and source_maps out of the SDK. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also csslib. Created 6 years 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 | « pkg/intl/example/basic/pubspec.yaml ('k') | pkg/intl/lib/date_symbol_data_http_request.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/date_symbol_data_file.dart
diff --git a/pkg/intl/lib/date_symbol_data_file.dart b/pkg/intl/lib/date_symbol_data_file.dart
deleted file mode 100644
index 1e641dff4441a1fb1df8deef2846b679812c0970..0000000000000000000000000000000000000000
--- a/pkg/intl/lib/date_symbol_data_file.dart
+++ /dev/null
@@ -1,47 +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 from files in the file system.
- */
-
-library date_symbol_data_file;
-
-import 'dart:async';
-
-import 'package:path/path.dart' as path;
-
-import 'date_symbols.dart';
-import 'src/data/dates/locale_list.dart';
-import 'src/date_format_internal.dart';
-import 'src/file_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 [path].
- * The [path] parameter should end with a directory separator appropriate
- * for the platform.
- */
-Future initializeDateFormatting(String locale, String filePath) {
- var reader = new FileDataReader(path.join(filePath, 'symbols'));
- initializeDateSymbols(() => new LazyLocaleData(
- reader, _createDateSymbol, availableLocalesForDateFormatting));
- var reader2 = new FileDataReader(path.join(filePath, 'patterns'));
- initializeDatePatterns(() => new LazyLocaleData(
- reader2, (x) => x, availableLocalesForDateFormatting));
- return initializeIndividualLocaleDateFormatting(
- (symbols, patterns) {
- return Future.wait([
- symbols.initLocale(locale),
- patterns.initLocale(locale)]);
- });
-}
-
-/** Defines how new date symbol entries are created. */
-DateSymbols _createDateSymbol(Map map) =>
- new DateSymbols.deserializeFromMap(map);
« no previous file with comments | « pkg/intl/example/basic/pubspec.yaml ('k') | pkg/intl/lib/date_symbol_data_http_request.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698