Skip to content

Commit

Permalink
Remove proj_api.h
Browse files Browse the repository at this point in the history
Removes proj_api.h from the public API. The contents of the header file
has been moved to proj_internal.h verbatim and any references to
proj_api.h has been changed to proj_internal.h.

The documentation of proj_api.h has been removed. The only exception to
this is the API migration guides which still mention the old API.

Fixes OSGeo#837
  • Loading branch information
kbevers committed Nov 1, 2020
1 parent cccd65e commit 1efb8ea
Show file tree
Hide file tree
Showing 18 changed files with 164 additions and 527 deletions.
5 changes: 2 additions & 3 deletions docs/source/development/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ are maintained in a `separate git repository <https://github.com/OSGeo/proj-datu
.. attention::

The ``proj_api.h`` header and the functions related to it is
considered deprecated from version 5.0.0 and onwards. The header will be
removed from PROJ in version 7.0.0 scheduled for release March 1st
2020.
considered deprecated from version 5.0.0 and onwards. The header has been
removed in version 8.0.0 released March 1st 2021.

.. attention::

Expand Down
270 changes: 0 additions & 270 deletions docs/source/development/reference/deprecated.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/development/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ Reference
datatypes
functions
cpp/index.rst
deprecated
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AM_CPPFLAGS = -DPROJ_LIB=\"$(pkgdatadir)\" \
-DMUTEX_@MUTEX_SETTING@ -I$(top_srcdir)/include @SQLITE3_CFLAGS@ @TIFF_CFLAGS@ @TIFF_ENABLED_FLAGS@ @CURL_CFLAGS@ @CURL_ENABLED_FLAGS@
AM_CXXFLAGS = @CXX_WFLAGS@ @FLTO_FLAG@

include_HEADERS = proj.h proj_experimental.h proj_constants.h proj_api.h geodesic.h \
include_HEADERS = proj.h proj_experimental.h proj_constants.h geodesic.h \
proj_symbol_rename.h

EXTRA_DIST = bin_cct.cmake bin_gie.cmake bin_cs2cs.cmake \
Expand Down
2 changes: 1 addition & 1 deletion src/apps/emess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <stdlib.h>
#include <string.h>

#include "proj_api.h"
#include "proj_internal.h"
#include "proj_config.h"
#define EMESS_ROUTINE
#include "emess.h"
Expand Down
1 change: 0 additions & 1 deletion src/iso19111/datum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
// clang-format off
#include "proj.h"
#include "proj_internal.h"
#include "proj_api.h"
// clang-format on

#include "proj_json_streaming_writer.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/iso19111/factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
// clang-format off
#include "proj.h"
#include "proj_internal.h"
#include "proj_api.h"
// clang-format on

#include <sqlite3.h>
Expand Down
1 change: 0 additions & 1 deletion src/iso19111/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
// clang-format off
#include "proj.h"
#include "proj_internal.h"
#include "proj_api.h"
// clang-format on

using namespace NS_PROJ::common;
Expand Down
1 change: 0 additions & 1 deletion src/lib_proj.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ set(SRC_LIBPROJ_CORE
)

set(HEADERS_LIBPROJ
proj_api.h
proj.h
proj_experimental.h
proj_constants.h
Expand Down
5 changes: 0 additions & 5 deletions src/mutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
#ifndef _WIN32
#include "proj_config.h"
#include "proj_internal.h"
#else
#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
#endif
#include "proj_api.h"
#endif

/* on win32 we always use win32 mutexes, even if pthreads are available */
Expand Down
4 changes: 0 additions & 4 deletions src/proj.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@

#include <stddef.h> /* For size_t */

#ifdef PROJ_API_H
#error proj.h must be included before proj_api.h
#endif

#ifdef PROJ_RENAME_SYMBOLS
#include "proj_symbol_rename.h"
#endif
Expand Down
Loading

0 comments on commit 1efb8ea

Please sign in to comment.