aboutsummaryrefslogtreecommitdiff
path: root/src/4D_api.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-11-18 09:57:42 +0100
committerKristian Evers <kristianevers@gmail.com>2020-11-20 16:40:40 +0100
commit43efca4ab87fb37a0931edcb6be11c0bd3784098 (patch)
treeb334bdb4d6898b740fbb4f300e6753a3d0878aff /src/4D_api.cpp
parentddb3b8da0756acbb8713aeb452de209eb350e996 (diff)
downloadPROJ-43efca4ab87fb37a0931edcb6be11c0bd3784098.tar.gz
PROJ-43efca4ab87fb37a0931edcb6be11c0bd3784098.zip
Remove pj_free() and move it's functional parts to proj_destroy()
Diffstat (limited to 'src/4D_api.cpp')
-rw-r--r--src/4D_api.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp
index 70b04bf1..78e9bdc3 100644
--- a/src/4D_api.cpp
+++ b/src/4D_api.cpp
@@ -1353,10 +1353,6 @@ PJ *proj_create_crs_to_crs_from_pj (PJ_CONTEXT *ctx, const PJ *source_crs, cons
return P;
}
-PJ *proj_destroy (PJ *P) {
- pj_free (P);
- return nullptr;
-}
/*****************************************************************************/
int proj_errno (const PJ *P) {
@@ -1636,7 +1632,7 @@ PJ_PROJ_INFO proj_pj_info(PJ *P) {
pjinfo.definition = empty;
else
pjinfo.definition = pj_shrink (def);
- /* Make pj_free clean this up eventually */
+ /* Make proj_destroy clean this up eventually */
P->def_full = def;
pjinfo.has_inverse = pj_has_inverse(P);