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

Unified Diff: pkg/barback/lib/src/asset_node_set.dart

Issue 261823008: Reorganize barback's source files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: re-add barback/lib/src/internal_asset.dart Created 6 years, 8 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 | « pkg/barback/lib/src/asset_node.dart ('k') | pkg/barback/lib/src/asset_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/asset_node_set.dart
diff --git a/pkg/barback/lib/src/asset_node_set.dart b/pkg/barback/lib/src/asset_node_set.dart
deleted file mode 100644
index be897b951214f2d9cf16ee0383bcc057ecde6c73..0000000000000000000000000000000000000000
--- a/pkg/barback/lib/src/asset_node_set.dart
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) 2013, 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.
-
-library barback.asset_node_set;
-
-import 'package:collection/collection.dart';
-
-import 'asset_node.dart';
-
-/// A set of [AssetNode]s that automatically ensures that nodes are removed from
-/// the set as soon as they're marked as [AssetState.REMOVED].
-class AssetNodeSet extends DelegatingSet<AssetNode> {
- AssetNodeSet()
- : super(new Set());
-
- bool add(AssetNode node) {
- if (node.state.isRemoved) return false;
- node.whenRemoved(() => super.remove(node));
- return super.add(node);
- }
-
- void addAll(Iterable<AssetNode> nodes) => nodes.forEach(add);
-}
« no previous file with comments | « pkg/barback/lib/src/asset_node.dart ('k') | pkg/barback/lib/src/asset_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698