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

Unified Diff: samples/todomvc/dart/presentation_graph.dart

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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 | « samples/todomvc/cc/todomvc_presenter.cc ('k') | samples/todomvc/dart/todomvc_presenter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/todomvc/dart/presentation_graph.dart
diff --git a/samples/todomvc/dart/presentation_graph.dart b/samples/todomvc/dart/presentation_graph.dart
deleted file mode 100644
index 1e532a644fcbe051d6f2864696c8011accd6d493..0000000000000000000000000000000000000000
--- a/samples/todomvc/dart/presentation_graph.dart
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2015, the Dartino 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.md file.
-
-// Construction and transformation utilities.
-
-import 'todomvc_presenter_model.dart';
-
-Bool truth(bool value, [previous]) =>
- (previous is Bool && previous.value == value) ? previous : new Bool(value);
-
-Str str(String value, [previous]) =>
- (previous is Str && previous.value == value) ? previous : new Str(value);
-
-Nil nil([previous]) => (previous is Nil) ? previous : new Nil();
-
-Cons cons(fst, snd, [deleteEvent, completeEvent, uncompleteEvent, previous]) {
- if (previous is Cons) {
- bool equal = true;
- if (fst == previous.fst) {
- fst = previous.fst;
- } else {
- equal = false;
- }
- if (snd == previous.snd) {
- snd = previous.snd;
- } else {
- equal = false;
- }
- if (deleteEvent == previous.deleteEvent) {
- deleteEvent = previous.deleteEvent;
- } else {
- equal = false;
- }
- if (completeEvent == previous.completeEvent) {
- completeEvent = previous.completeEvent;
- } else {
- equal = false;
- }
- if (uncompleteEvent == previous.uncompleteEvent) {
- uncompleteEvent = previous.uncompleteEvent;
- } else {
- equal = false;
- }
- if (equal) {
- return previous;
- }
- }
- return new Cons(fst, snd, deleteEvent, completeEvent, uncompleteEvent);
-}
-
-Immutable getConsFst(Immutable node) => (node is Cons) ? node.fst : null;
-Immutable getConsSnd(Immutable node) => (node is Cons) ? node.snd : null;
« no previous file with comments | « samples/todomvc/cc/todomvc_presenter.cc ('k') | samples/todomvc/dart/todomvc_presenter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698