aboutsummaryrefslogtreecommitdiff
path: root/src/vector1.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-02-10 12:06:43 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-02-10 19:39:26 +0100
commitc45d7693ee799fe7317550ffb3dd9a40c4b0a17c (patch)
tree0c648f0657b6de46025eade01cf40233b9812a95 /src/vector1.cpp
parent08c2d69360939dc67fe151a441e764da132846c7 (diff)
downloadPROJ-c45d7693ee799fe7317550ffb3dd9a40c4b0a17c.tar.gz
PROJ-c45d7693ee799fe7317550ffb3dd9a40c4b0a17c.zip
Completely remove Chebychev remains from codebase
c6ab83f5742bc5ac6f9cb9a8b2a4f1ea241b6f63 already removed their availability in user facing application, but the library code remained, and appeared to be unused by the rest of the library, and not available to library users, the API being only in proj_internal.h. So remove all remains.
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;
-}