Skip to content

Commit

Permalink
Remove glslang::pool_allocator::setAllocator
Browse files Browse the repository at this point in the history
TPoolAllocator is not copy assignable, so this setter could never have
been used. After a recent change (878a24ee2), new versions of Clang
reject this code outright.
  • Loading branch information
rnk committed Dec 4, 2019
1 parent e58c080 commit 24b3e83
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion glslang/Include/PoolAlloc.h
Expand Up @@ -304,7 +304,6 @@ class pool_allocator {
size_type max_size() const { return static_cast<size_type>(-1) / sizeof(T); }
size_type max_size(int size) const { return static_cast<size_type>(-1) / size; }

void setAllocator(TPoolAllocator* a) { allocator = *a; }
TPoolAllocator& getAllocator() const { return allocator; }

protected:
Expand Down

0 comments on commit 24b3e83

Please sign in to comment.