Permalink
Browse files

Remove legacy support code for DMD 2.073.2.

  • Loading branch information...
s-ludwig committed May 9, 2018
1 parent 788afde commit 8277ef40b53ee14ac2188a149707adf1357885d2
Showing with 2 additions and 4 deletions.
  1. +1 −2 utils/vibe/utils/array.d
  2. +1 −2 utils/vibe/utils/hashmap.d
View
@@ -719,8 +719,7 @@ struct ArraySet(Key)
ref allocator()
nothrow @trusted {
try {
static if (__VERSION__ < 2074) auto palloc = m_allocator.parent;
else auto palloc = m_allocator._parent;
auto palloc = m_allocator._parent;
if (!palloc) {
assert(vibeThreadAllocator !is null, "No theAllocator set!?");
m_allocator = AllocatorType(AW(vibeThreadAllocator));
@@ -241,8 +241,7 @@ struct HashMap(TKey, TValue, Traits = DefaultHashMapTraits!TKey)
private void grow(size_t amount)
@trusted {
try {
static if (__VERSION__ < 2074) auto palloc = m_allocator.parent;
else auto palloc = m_allocator._parent;
auto palloc = m_allocator._parent;
if (!palloc) {
try m_allocator = typeof(m_allocator)(AW(vibeThreadAllocator()));
catch (Exception e) assert(false, e.msg);

0 comments on commit 8277ef4

Please sign in to comment.