container.list: Remove deprecated list length property

This commit is contained in:
Eugen Wissner 2018-06-01 14:13:27 +02:00
parent 58af2fd89b
commit c663703221

View File

@ -178,7 +178,6 @@ struct SList(T)
@nogc nothrow pure @safe unittest @nogc nothrow pure @safe unittest
{ {
auto l = SList!int(2, 3); auto l = SList!int(2, 3);
assert(l.length == 2);
assert(l.front == 3); assert(l.front == 3);
} }
@ -192,7 +191,6 @@ struct SList(T)
@nogc nothrow pure @safe unittest @nogc nothrow pure @safe unittest
{ {
auto l = SList!int(2); auto l = SList!int(2);
assert(l.length == 2);
assert(l.front == 0); assert(l.front == 0);
} }
@ -432,7 +430,6 @@ struct SList(T)
assert(l2.front == 25); assert(l2.front == 25);
l2.insertFront(l1[]); l2.insertFront(l1[]);
assert(l2.length == 5);
assert(l2.front == 9); assert(l2.front == 9);
} }
@ -566,12 +563,6 @@ struct SList(T)
assert(l1 == l2); assert(l1 == l2);
} }
deprecated
@property size_t length() const
{
return count(this[]);
}
/** /**
* Comparison for equality. * Comparison for equality.
* *
@ -1154,7 +1145,6 @@ struct DList(T)
@nogc nothrow pure @safe unittest @nogc nothrow pure @safe unittest
{ {
auto l = DList!int(2, 3); auto l = DList!int(2, 3);
assert(l.length == 2);
assert(l.front == 3); assert(l.front == 3);
assert(l.back == 3); assert(l.back == 3);
} }
@ -1169,7 +1159,6 @@ struct DList(T)
@nogc nothrow pure @safe unittest @nogc nothrow pure @safe unittest
{ {
auto l = DList!int(2); auto l = DList!int(2);
assert(l.length == 2);
assert(l.front == 0); assert(l.front == 0);
} }
@ -1480,7 +1469,6 @@ struct DList(T)
assert(l2.back == 15); assert(l2.back == 15);
l2.insertFront(l1[]); l2.insertFront(l1[]);
assert(l2.length == 5);
assert(l2.front == 9); assert(l2.front == 9);
assert(l2.back == 15); assert(l2.back == 15);
} }
@ -1600,7 +1588,6 @@ struct DList(T)
assert(l2.back == 15); assert(l2.back == 15);
l2.insertBack(l1[]); l2.insertBack(l1[]);
assert(l2.length == 5);
assert(l2.back == 9); assert(l2.back == 9);
} }
@ -1855,12 +1842,6 @@ struct DList(T)
return insertAfter!(T[])(r, el[]); return insertAfter!(T[])(r, el[]);
} }
deprecated
@property size_t length() const
{
return count(this[]);
}
/** /**
* Comparison for equality. * Comparison for equality.
* *
@ -2354,7 +2335,6 @@ struct DList(T)
l.insertAfter(l[], 234); l.insertAfter(l[], 234);
assert(l.front == 234); assert(l.front == 234);
assert(l.back == 234); assert(l.back == 234);
assert(l.length == 1);
} }
@nogc nothrow pure @safe unittest @nogc nothrow pure @safe unittest