@@ -710,9 +710,6 @@ abstract class BidirectionalIterator<T> implements Iterator<T> {
710710 * The uses of this class will be replaced by mixins.
711711 */
712712class IterableMixinWorkaround {
713- // A list to identify cyclic collections during toString() calls.
714- static List _toStringList = new List ();
715-
716713 static bool contains (Iterable iterable, var element) {
717714 for (final e in iterable) {
718715 if (e == element) return true ;
@@ -906,27 +903,6 @@ class IterableMixinWorkaround {
906903 return buffer.toString ();
907904 }
908905
909- static String toStringIterable (Iterable iterable, String leftDelimiter,
910- String rightDelimiter) {
911- for (int i = 0 ; i < _toStringList.length; i++ ) {
912- if (identical (_toStringList[i], iterable)) {
913- return '$leftDelimiter ...$rightDelimiter ' ;
914- }
915- }
916-
917- StringBuffer result = new StringBuffer ();
918- try {
919- _toStringList.add (iterable);
920- result.write (leftDelimiter);
921- result.writeAll (iterable, ', ' );
922- result.write (rightDelimiter);
923- } finally {
924- assert (identical (_toStringList.last, iterable));
925- _toStringList.removeLast ();
926- }
927- return result.toString ();
928- }
929-
930906 static Iterable where (Iterable iterable, bool f (var element)) {
931907 return new WhereIterable (iterable, f);
932908 }
0 commit comments