From 0e9be6fd7d5eeddc329d5b75d5b89ce5d79c236e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 9 Nov 2018 11:37:56 +0100 Subject: Cycles: Cleanup, remove unneeded method from vector Since we've defaulted to C++11, no need to override this method manually anymore. --- intern/cycles/util/util_vector.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/intern/cycles/util/util_vector.h b/intern/cycles/util/util_vector.h index 977019994be..df576f710a9 100644 --- a/intern/cycles/util/util_vector.h +++ b/intern/cycles/util/util_vector.h @@ -34,7 +34,6 @@ CCL_NAMESPACE_BEGIN * Own subclass-ed vestion of std::vector. Subclass is needed because: * * - Use own allocator which keeps track of used/peak memory. - * * - Have method to ensure capacity is re-set to 0. */ template { public: + typedef std::vector BaseClass; + /* Default constructor. */ explicit vector() : std::vector() { } @@ -57,15 +58,10 @@ public: /* Copy constructor. */ vector(const vector &x) : std::vector(x) { } - void shrink_to_fit(void) - { - std::vector::shrink_to_fit(); - } - void free_memory(void) { - std::vector::resize(0); - shrink_to_fit(); + BaseClass::resize(0); + BaseClass::shrink_to_fit(); } /* Some external API might demand working with std::vector. */ -- cgit v1.2.3