Skip to content

Commit d938dbd

Browse files
authored
Removed unused variable and style changes. (#346)
1 parent 54db3dc commit d938dbd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/ArrayOfArraysView.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,6 @@ class ArrayOfArraysView
794794
}
795795

796796
INDEX_TYPE const totalSize = m_offsets[ newSize ];
797-
798-
INDEX_TYPE const maxOffset = m_offsets[ m_numArrays ];
799797
typeManipulation::forEachArg( [this, totalSize]( auto & buffer )
800798
{
801799
// We create a new buffer to avoid moving from uninitialized values.
@@ -809,7 +807,7 @@ class ArrayOfArraysView
809807
arrayManipulation::uninitializedMove( &newBuffer[ curArrayOffset ], curArraySize, &buffer[ curArrayOffset ] );
810808
arrayManipulation::destroy( &buffer[ curArrayOffset ], curArraySize );
811809
}
812-
810+
813811
buffer.free();
814812
buffer = std::move( newBuffer );
815813
}, m_values, buffers ... );
@@ -939,7 +937,7 @@ class ArrayOfArraysView
939937
arrayManipulation::uninitializedMove( &newBuffer[ curArrayOffset + shift ], curArraySize, &buffer[ curArrayOffset ] );
940938
arrayManipulation::destroy( &buffer[ curArrayOffset ], curArraySize );
941939
}
942-
940+
943941
buffer.free();
944942
buffer = std::move( newBuffer );
945943
}

0 commit comments

Comments
 (0)