Skip to content

Commit 909740a

Browse files
committed
Remove duplicate arrayCopy (already defined)
1 parent 4591e97 commit 909740a

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

src/Processing.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2895,30 +2895,6 @@ template<typename T>
28952895
void arrayCopy(const Array<T>& src, int srcPos, Array<T>& dst, int dstPos, int length) {
28962896
for (int i = 0; i < length; i++) dst[dstPos + i] = src[srcPos + i];
28972897
}
2898-
// arrayCopy for std::vector
2899-
template<class T> inline void arrayCopy(const ::std::vector<T>& src, ::std::vector<T>& dst) {
2900-
dst = src;
2901-
}
2902-
template<class T> inline void arrayCopy(const ::std::vector<T>& src, int srcPos, ::std::vector<T>& dst, int dstPos, int length) {
2903-
for (int i=0;i<length;i++) dst[dstPos+i]=src[srcPos+i];
2904-
}
2905-
// arrayCopy for raw arrays
2906-
template<class T> inline void arrayCopy(const T* src, T* dst, int length) {
2907-
::std::copy(src, src+length, dst);
2908-
}
2909-
2910-
// arrayCopy for std::vector
2911-
template<class T> inline void arrayCopy(const ::std::vector<T>& src, ::std::vector<T>& dst) {
2912-
dst = src;
2913-
}
2914-
template<class T> inline void arrayCopy(const ::std::vector<T>& src, int srcPos, ::std::vector<T>& dst, int dstPos, int length) {
2915-
for (int i=0;i<length;i++) dst[dstPos+i]=src[srcPos+i];
2916-
}
2917-
// arrayCopy for raw arrays
2918-
template<class T> inline void arrayCopy(const T* src, T* dst, int length) {
2919-
::std::copy(src, src+length, dst);
2920-
}
2921-
29222898

29232899
template<typename T>
29242900
Array<T> concat(const Array<T>& a, const Array<T>& b) {

0 commit comments

Comments
 (0)