Browse Source

Remove heavy compatibility includes added in 2019.01.

Should have a strictly positive effect on compile times.
pull/461/head
Vladimír Vondruš 6 years ago
parent
commit
868843c9bb
  1. 7
      doc/changelog.dox
  2. 4
      doc/snippets/MagnumMeshTools-gl.cpp
  3. 2
      src/Magnum/MeshTools/Compile.h
  4. 4
      src/Magnum/Text/AbstractFont.h
  5. 4
      src/Magnum/Text/AbstractFontConverter.h

7
doc/changelog.dox

@ -93,6 +93,13 @@ See also:
- @ref Trade::CameraData constructor not taking an explicit type enum,
use @ref Trade::CameraData::CameraData(CameraType, Rad, Float, Float, Float, const void*)
instead
- All includes of @ref Corrade/Containers/PointerStl.h and
@ref Corrade/Containers/ArrayViewStl.h that were added in 2019.01 for
preserving backwards compatibility after the move from @ref std::unique_ptr
/ @ref std::vector to @ref Corrade::Containers::Pointer /
@ref Corrade::Containers::ArrayView are now removed. This should have a
significant positive effect on compile times of code using the @ref GL,
@ref Audio, @ref Trade and @ref Text librariess
@section changelog-2020-06 2020.06

4
doc/snippets/MagnumMeshTools-gl.cpp

@ -34,6 +34,10 @@
#include "Magnum/MeshTools/Interleave.h"
#include "Magnum/Trade/MeshData.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <vector>
#endif
using namespace Magnum;
int main() {

2
src/Magnum/MeshTools/Compile.h

@ -40,8 +40,6 @@
#include "Magnum/MeshTools/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <tuple>
#include <memory> /* deliberately kept here */
#include <Corrade/Utility/Macros.h>
#endif

4
src/Magnum/Text/AbstractFont.h

@ -38,10 +38,6 @@
#include "Magnum/Text/Text.h"
#include "Magnum/Text/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <Corrade/Containers/PointerStl.h>
#endif
namespace Magnum { namespace Text {
/**

4
src/Magnum/Text/AbstractFontConverter.h

@ -37,10 +37,6 @@
#include "Magnum/Text/Text.h"
#include "Magnum/Text/visibility.h"
#ifdef MAGNUM_BUILD_DEPRECATED
#include <Corrade/Containers/PointerStl.h>
#endif
#ifdef CORRADE_TARGET_LIBCXX
#include <string> /* Libc++ doesn't have std::u32string in the fwdecl */
#else

Loading…
Cancel
Save