diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-11-11 13:47:29 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-11-17 11:47:13 +0100 |
commit | faea8e266114abcc9ebd517a552bf7d0e6770575 (patch) | |
tree | 7e6034d6c27afc8d7e2fbdc1c09b77f98180853a /src/corelib | |
parent | 39ca7d4bd189645c1b812c1ab3dbfc80a2bdfc33 (diff) |
Remove unused code
Change-Id: I22f377c10a556fbb011ec98094d5a61ee3f63867
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qarraydataops.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/corelib/tools/qarraydataops.h b/src/corelib/tools/qarraydataops.h index 020ffee4e1..fe81e66a82 100644 --- a/src/corelib/tools/qarraydataops.h +++ b/src/corelib/tools/qarraydataops.h @@ -146,30 +146,6 @@ struct QArrayExceptionSafetyPrimitives (end - begin) * sizeof(T)); } }; - - // Watches passed iterator. Moves the data range (defined as a start - // iterator and a length) to the new starting position at the end of object - // lifetime. - struct Mover - { - T *&destination; - const T *const source; - size_t n; - qsizetype &size; - - static_assert(QTypeInfo<T>::isRelocatable, "Type must be relocatable"); - - Mover(T *&start, size_t length, qsizetype &sz) noexcept - : destination(start), source(start), n(length), size(sz) - { } - ~Mover() noexcept - { - if (destination != source) - ::memmove(static_cast<void *>(destination), static_cast<const void *>(source), - n * sizeof(T)); - size -= source > destination ? source - destination : destination - source; - } - }; }; // Tags for compile-time dispatch based on backwards vs forward growing policy |