Skip to content

Commit 20c6518

Browse files
committed
Removed unused code
1 parent 53e5b3e commit 20c6518

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

BinaryRelations/BinaryRelations.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ typename std::vector<T>::const_iterator findInSortedVector(const std::vector<T>
5252
return vector->cend();
5353
}
5454

55-
template <typename T> int appendToSortedVector(std::vector<T> *vector, const T &value) noexcept
56-
{
57-
vector->append(value);
58-
return 1;
59-
}
60-
6155
template <typename T> int insertIntoSortedVector(std::vector<T> *vector, const T &value) noexcept
6256
{
6357
typename std::vector<T>::iterator it = std::lower_bound(vector->begin(), vector->end(), value);

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ Results microseconds.
322322
all those I have found have a license that is more restrictive than the MIT
323323
license.
324324

325-
The array insert operation, which requires shifting half the array on average,
326-
is definitely a performance liability. This can be improved by segmenting the
327-
array, so that you only have to shift half of the segment.
325+
The array insert and erase operations, which require shifting half the array on
326+
average, are definitely a performance liability. This can be optimized, at the
327+
cost complexity.
328328

329-
Performance of this tech has not been an issue in our tools. But there is plenty
329+
Performance of this tech has not been an issue in our tools, but there is plenty
330330
of room for improvement.
331331

332332
How it works

0 commit comments

Comments
 (0)