Browse Source

Audio, GL: remove deprecated Context conversion to pointer.

Deprecated since 2017.
pull/331/head
Vladimír Vondruš 7 years ago
parent
commit
377719147c
  1. 3
      doc/changelog.dox
  2. 5
      src/Magnum/Audio/Context.h
  3. 5
      src/Magnum/GL/Context.h

3
doc/changelog.dox

@ -324,6 +324,9 @@ See also:
- Removed remaining @ref Platform::Sdl2Application "Platform::*Application"
constructors taking @cpp nullptr @ce instead of @ref NoCreate, deprecated
since 2017
- Removed compatibility code in @ref Audio::Context where
@ref Audio::Context::current() would be usable with both @cpp . @ce and
@cpp -> @ce, deprecated since 2017
- Removed the `Shapes` library together with `DebugTools::ShapeRenderer`,
which was a failed design experiment deprecated since version 2018.10
(see [mosra/magnum#148](https://github.com/mosra/magnum/issues/148))

5
src/Magnum/Audio/Context.h

@ -193,11 +193,6 @@ class MAGNUM_AUDIO_EXPORT Context {
/** @brief Move assignment is not allowed */
Context& operator=(Context&& other) = delete;
#if defined(MAGNUM_BUILD_DEPRECATED) && !defined(DOXYGEN_GENERATING_OUTPUT)
CORRADE_DEPRECATED("Audio::Context::current() returns reference now") Context* operator->() { return this; }
CORRADE_DEPRECATED("Audio::Context::current() returns reference now") operator Context*() { return this; }
#endif
/**
* @brief Complete the context setup and exit on failure
*

5
src/Magnum/GL/Context.h

@ -424,11 +424,6 @@ class MAGNUM_GL_EXPORT Context {
/** @brief Move assignment is not allowed */
Context& operator=(Context&&) = delete;
#if defined(MAGNUM_BUILD_DEPRECATED) && !defined(DOXYGEN_GENERATING_OUTPUT)
CORRADE_DEPRECATED("Context::current() returns reference now") Context* operator->() { return this; }
CORRADE_DEPRECATED("Context::current() returns reference now") operator Context*() { return this; }
#endif
/**
* @brief OpenGL version
*

Loading…
Cancel
Save