From 327574c29d9dff7bee88c9e9951329c111e6dd21 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Sat, 3 Feb 2018 20:43:46 -0800 Subject: [PATCH] Delint analysis issues. --- lib/src/constants/utils.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/src/constants/utils.dart b/lib/src/constants/utils.dart index 53524b60..23d21027 100644 --- a/lib/src/constants/utils.dart +++ b/lib/src/constants/utils.dart @@ -4,12 +4,10 @@ import 'package:analyzer/dart/constant/value.dart'; import 'package:analyzer/dart/element/element.dart'; -import 'package:meta/meta.dart'; /// Throws a [FormatException] if [root] does not have a given field [name]. /// /// Super types [ClassElement.supertype] are also checked before throwing. -@visibleForTesting void assertHasField(ClassElement root, String name) { var element = root; while (element != null) { @@ -28,13 +26,11 @@ void assertHasField(ClassElement root, String name) { } /// Returns whether or not [object] is or represents a `null` value. -@visibleForTesting bool isNullLike(DartObject object) => object?.isNull != false; /// Similar to [DartObject.getField], but traverses super classes. /// /// Returns `null` if ultimately [field] is never found. -@visibleForTesting DartObject getFieldRecursive(DartObject object, String field) { if (isNullLike(object)) { return null;