Index: pkg/serialization/lib/src/serialization_rule.dart |
diff --git a/pkg/serialization/lib/src/serialization_rule.dart b/pkg/serialization/lib/src/serialization_rule.dart |
index a4602373c1f33f40ff2264d3bfe3a6e143f64d6c..289164cddec24070c0db07e729017dddbf4cb11b 100644 |
--- a/pkg/serialization/lib/src/serialization_rule.dart |
+++ b/pkg/serialization/lib/src/serialization_rule.dart |
@@ -275,11 +275,6 @@ class PrimitiveRule extends SerializationRule { |
} |
} |
-/** Helper function for PrimitiveRule to tell which objects it applies to. */ |
-bool isPrimitive(Object object) { |
- return object is num || object is String || object is bool; |
-} |
- |
/** Typedef for the object construction closure used in ClosureToMapRule. */ |
typedef Object ConstructType(Map m); |