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

Unified Diff: charted/lib/core/utils.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 | « charted/lib/core/timer.dart ('k') | charted/lib/core/utils/bidi_formatter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: charted/lib/core/utils.dart
diff --git a/charted/lib/core/utils.dart b/charted/lib/core/utils.dart
deleted file mode 100644
index febf9e69b44f394bfa20c11d69920ab4439f7b61..0000000000000000000000000000000000000000
--- a/charted/lib/core/utils.dart
+++ /dev/null
@@ -1,50 +0,0 @@
-//
-// Copyright 2014 Google Inc. All rights reserved.
-//
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file or at
-// https://developers.google.com/open-source/licenses/bsd
-//
-
-/// A collection of utilities for use by rest of the library and it's users
-library charted.core.utils;
-
-import "dart:html" show Element, NodeTreeSanitizer;
-import "dart:math" as math;
-import "dart:async";
-
-import "package:intl/intl.dart" show BidiFormatter, Bidi, TextDirection;
-import "package:collection/collection.dart";
-import "package:quiver/core.dart";
-
-part 'utils/color.dart';
-part 'utils/disposer.dart';
-part 'utils/lists.dart';
-part 'utils/math.dart';
-part 'utils/namespace.dart';
-part 'utils/object_factory.dart';
-part 'utils/rect.dart';
-part 'utils/bidi_formatter.dart';
-
-const String ORIENTATION_LEFT = 'left';
-const String ORIENTATION_RIGHT = 'right';
-const String ORIENTATION_TOP = 'top';
-const String ORIENTATION_BOTTOM = 'bottom';
-
-/// Identity function that returns the value passed as it's parameter.
-identityFunction(x) => x;
-
-/// Function that formats a value to String.
-typedef String FormatFunction(value);
-
-/// Test if the given String or Iterable, [val] is null or empty
-bool isNullOrEmpty(val) {
- assert(val == null || val is String || val is Iterable);
- return val == null || val.isEmpty;
-}
-
-/// An empty tree sanitizer for use with Element.html
-/// This sanitizer must not be used when attaching user input to the DOM.
-class NullTreeSanitizer implements NodeTreeSanitizer {
- void sanitizeTree(_) {}
-}
« no previous file with comments | « charted/lib/core/timer.dart ('k') | charted/lib/core/utils/bidi_formatter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698