From 31e3c4df74f75ba9e8f4f3596bd0d1be55b6c314 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 27 Jan 2016 23:51:08 +0300 Subject: [PATCH] Remove deprecated variant of Renderer::GetInfo() --- CHANGES.md | 4 ++++ SDL2pp/Renderer.cc | 7 +------ SDL2pp/Renderer.hh | 17 +---------------- 3 files changed, 6 insertions(+), 22 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8ba18e3..e7af30b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## 0.13.0 - unreleased +### Removed +* Deprecated ```Renderer::GetInfo()``` variant which takes pointer (use variant which takes reference) + ## 0.12.0 - 2016-01-23 ### Fixed * Link SDL2main library, which is needed on some systems diff --git a/SDL2pp/Renderer.cc b/SDL2pp/Renderer.cc index 6227c6b..bf23ee1 100644 --- a/SDL2pp/Renderer.cc +++ b/SDL2pp/Renderer.cc @@ -1,6 +1,6 @@ /* libSDL2pp - C++11 bindings/wrapper for SDL2 - Copyright (C) 2013-2015 Dmitry Marakasov + Copyright (C) 2013-2016 Dmitry Marakasov This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages @@ -72,11 +72,6 @@ Renderer& Renderer::Clear() { return *this; } -void Renderer::GetInfo(SDL_RendererInfo* info) { - if (SDL_GetRendererInfo(renderer_, info) != 0) - throw Exception("SDL_GetRendererInfo"); -} - void Renderer::GetInfo(SDL_RendererInfo& info) { if (SDL_GetRendererInfo(renderer_, &info) != 0) throw Exception("SDL_GetRendererInfo"); diff --git a/SDL2pp/Renderer.hh b/SDL2pp/Renderer.hh index 4a2a231..9a0bce0 100644 --- a/SDL2pp/Renderer.hh +++ b/SDL2pp/Renderer.hh @@ -1,6 +1,6 @@ /* libSDL2pp - C++11 bindings/wrapper for SDL2 - Copyright (C) 2013-2015 Dmitry Marakasov + Copyright (C) 2013-2016 Dmitry Marakasov This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages @@ -160,21 +160,6 @@ public: //////////////////////////////////////////////////////////// Renderer& Clear(); - //////////////////////////////////////////////////////////// - /// \brief Get information about a rendering context - /// - /// \param[out] info SDL_RendererInfo structure to be filled with - /// information about the current renderer - /// - /// \throws SDL2pp::Exception - /// - /// \see http://wiki.libsdl.org/SDL_GetRendererInfo - /// - /// \deprecated Use GetInfo(SDL_RendererInfo&) instead - /// - //////////////////////////////////////////////////////////// - SDL2PP_DEPRECATED void GetInfo(SDL_RendererInfo* info); - //////////////////////////////////////////////////////////// /// \brief Get information about a rendering context ///