summaryrefslogtreecommitdiff
path: root/core/vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/vector.h')
-rw-r--r--core/vector.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/vector.h b/core/vector.h
index 7ab464fe11..4521b29339 100644
--- a/core/vector.h
+++ b/core/vector.h
@@ -93,7 +93,6 @@ public:
template <class C>
void sort_custom() {
-
int len = _cowdata.size();
if (len == 0)
return;
@@ -104,14 +103,12 @@ public:
}
void sort() {
-
sort_custom<_DefaultComparator<T>>();
}
void ordered_insert(const T &p_val) {
int i;
for (i = 0; i < _cowdata.size(); i++) {
-
if (p_val < operator[](i)) {
break;
};
@@ -132,7 +129,6 @@ public:
}
Vector<T> subarray(int p_from, int p_to) const {
-
if (p_from < 0) {
p_from = size() + p_from;
}
@@ -163,7 +159,6 @@ public:
template <class T>
void Vector<T>::invert() {
-
for (int i = 0; i < size() / 2; i++) {
T *p = ptrw();
SWAP(p[i], p[size() - i - 1]);
@@ -183,7 +178,6 @@ void Vector<T>::append_array(Vector<T> p_other) {
template <class T>
bool Vector<T>::push_back(T p_elem) {
-
Error err = resize(size() + 1);
ERR_FAIL_COND_V(err, true);
set(size() - 1, p_elem);