projects
/
cgds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix Queue tests issue by returning to List implementation
[cgds.git]
/
src
/
Vector.c
diff --git
a/src/Vector.c
b/src/Vector.c
index
a303d54
..
2d00985
100644
(file)
--- a/
src/Vector.c
+++ b/
src/Vector.c
@@
-82,15
+82,6
@@
void vector_pop(Vector* vector)
_vector_realloc(vector, vector->capacity >> 1);
}
_vector_realloc(vector, vector->capacity >> 1);
}
-void vector_pop_first(Vector* vector)
-{
- safe_free(vector->datas[0]);
- vector->datas++;
- vector->size--;
- if (vector_size(vector) <= (vector->capacity >> 1))
- _vector_realloc(vector, vector->capacity >> 1);
-}
-
void* _vector_get(Vector* vector, UInt index)
{
return vector->datas[index];
void* _vector_get(Vector* vector, UInt index)
{
return vector->datas[index];