diff --git a/rtengine/array2D.h b/rtengine/array2D.h index 9645a3a6e..25d644c85 100644 --- a/rtengine/array2D.h +++ b/rtengine/array2D.h @@ -281,34 +281,6 @@ public: return (x > 0 && y > 0); } - array2D & operator=( array2D & rhs) - { - if (this != &rhs) - - { - flags = rhs.flags; - lock = rhs.lock; - if (!owner) { // we can only copy same size data - if ((x != rhs.x) || (y != rhs.y)) { - printf(" assignment error in array2D\n"); - printf(" sizes differ and not owner\n"); - raise( SIGSEGV); - } - - } else { - ar_realloc(rhs.x, rhs.y); - } - - // we could have been created from a different - // array format where each row is created by 'new' - for (int i = 0; i < y; i++) { - memcpy(ptr[i], rhs.ptr[i], x * sizeof(T)); - } - } - - return *this; - } - }; template class multi_array2D