Removed unused Context::GetCurrentContextId()

This commit is contained in:
Laurent Gomila 2011-12-21 22:27:19 +01:00
parent bc95d855b3
commit 78910b555e
4 changed files with 0 additions and 38 deletions

View File

@ -41,8 +41,6 @@ namespace priv
class GlContext; class GlContext;
} }
typedef void* ContextId;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Class holding a valid drawing context /// \brief Class holding a valid drawing context
/// ///
@ -77,18 +75,6 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool SetActive(bool active); bool SetActive(bool active);
////////////////////////////////////////////////////////////
/// \brief Return the identifier of the current active context
///
/// The returned id has no special meaning, it should only be
/// used as a key to map external stuff to internal contexts.
/// This function returns 0 if no context is active.
///
/// \return Identifier of the current context
///
////////////////////////////////////////////////////////////
static ContextId GetCurrentContextId();
public : public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////

View File

@ -53,13 +53,6 @@ bool Context::SetActive(bool active)
} }
////////////////////////////////////////////////////////////
ContextId Context::GetCurrentContextId()
{
return priv::GlContext::GetCurrentContext();
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Context::Context(const ContextSettings& settings, unsigned int width, unsigned int height) Context::Context(const ContextSettings& settings, unsigned int width, unsigned int height)
{ {

View File

@ -177,13 +177,6 @@ GlContext* GlContext::New(const ContextSettings& settings, unsigned int width, u
} }
////////////////////////////////////////////////////////////
GlContext* GlContext::GetCurrentContext()
{
return currentContext;
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
GlContext::~GlContext() GlContext::~GlContext()
{ {

View File

@ -118,16 +118,6 @@ public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
static GlContext* New(const ContextSettings& settings, unsigned int width, unsigned int height); static GlContext* New(const ContextSettings& settings, unsigned int width, unsigned int height);
////////////////////////////////////////////////////////////
/// \brief Return the current active context
///
/// This function returns 0 if no context is active.
///
/// \return Context currently active in this thread
///
////////////////////////////////////////////////////////////
static GlContext* GetCurrentContext();
public : public :
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////