Revert "Merge pull request #2639 from Hixie/always_specify_types"

This reverts commit f41b3411da, reversing
changes made to e33d8d9621.

This was a bad check-in due to my mangling uploading a new version of the branch from a different machine.

This reverts https://github.com/flutter/flutter/pull/2639 and will be replaced by https://github.com/flutter/flutter/pull/2640
This commit is contained in:
Ian Hickson
2016-03-12 00:34:37 -08:00
parent f41b3411da
commit 43b0104114
113 changed files with 689 additions and 770 deletions

View File

@@ -72,10 +72,7 @@ class Instrumentation {
/// element.
Element findText(String text) {
return findElement((Element element) {
if (element.widget is! Text)
return false;
Text textWidget = element.widget;
return textWidget.data == text;
return element.widget is Text && element.widget.data == text;
});
}