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

Unified Diff: tools/dom/templates/html/impl/impl_IDBIndex.darttemplate

Issue 23788007: Remove invalid calls to the _count method. This is a short term fix to make the build green. Blois… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
Index: tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate b/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
index afba24eb879ffc3e5bfadf70ad3e60ff6e307528..44f866cc202b339851c34f54c27c36c31248cb50 100644
--- a/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
+++ b/tools/dom/templates/html/impl/impl_IDBIndex.darttemplate
@@ -8,12 +8,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
@DomName('IDBIndex.count')
Future<int> count([key_OR_range]) {
try {
- var request;
- if (key_OR_range != null) {
- request = _count(key_OR_range);
- } else {
- request = _count();
- }
+ var request = _count(key_OR_range);
return _completeRequest(request);
} catch (e, stacktrace) {
return new Future.error(e, stacktrace);
@@ -60,12 +55,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
} else {
key_OR_range = range;
}
- var request;
- if (direction == null) {
- request = _openCursor(key_OR_range);
- } else {
- request = _openCursor(key_OR_range, direction);
- }
+ var request = _openCursor(key_OR_range, direction);
return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}
@@ -87,12 +77,7 @@ $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
} else {
key_OR_range = range;
}
- var request;
- if (direction == null) {
- request = _openKeyCursor(key_OR_range);
- } else {
- request = _openKeyCursor(key_OR_range, direction);
- }
+ var request = _openKeyCursor(key_OR_range, direction);
return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}

Powered by Google App Engine
This is Rietveld 408576698