aboutsummaryrefslogtreecommitdiff
path: root/src/vector1.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-02-14 13:43:30 +0100
committerKristian Evers <kristianevers@gmail.com>2019-02-14 13:43:30 +0100
commit365526921aa330fbfb185569cbfbb54ca5714f6c (patch)
tree75db358cce9695e32d5f4ced13c77dc31939830f /src/vector1.cpp
parent82855db893dd66de9588497e5748e64a9622ea66 (diff)
parent94f0d87714a86385a0102f1cbd086f888475912f (diff)
downloadPROJ-365526921aa330fbfb185569cbfbb54ca5714f6c.tar.gz
PROJ-365526921aa330fbfb185569cbfbb54ca5714f6c.zip
Merge remote-tracking branch 'osgeo/master' into remove-t_obs
Diffstat (limited to 'src/vector1.cpp')
-rw-r--r--src/vector1.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/vector1.cpp b/src/vector1.cpp
deleted file mode 100644
index fc69f5c3..00000000
--- a/src/vector1.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-/* make storage for one and two dimensional matricies */
-#include <stdlib.h>
-#include "proj.h"
-#include "proj_internal.h"
- void * /* one dimension array */
-vector1(int nvals, int size) { return((void *)pj_malloc(size * nvals)); }
- void /* free 2D array */
-freev2(void **v, int nrows) {
- if (v) {
- for (v += nrows; nrows > 0; --nrows)
- pj_dalloc(*--v);
- pj_dalloc(v);
- }
-}
- void ** /* two dimension array */
-vector2(int nrows, int ncols, int size) {
- void **s;
-
- if ((s = (void **)pj_malloc(sizeof(void *) * nrows)) != nullptr) {
- int rsize, i;
-
- rsize = size * ncols;
- for (i = 0; i < nrows; ++i)
- if (!(s[i] = pj_malloc(rsize))) {
- freev2(s, i);
- return (void **)nullptr;
- }
- }
- return s;
-}