Bug 1338184 - remove unused GetGlobalContextWGL function; r=jgilbert
authorNathan Froyd <froydnj@mozilla.com>
Wed, 15 Feb 2017 11:43:37 -0400
changeset 343106 1d166276a6e4ab346c6afeeb01cd8729ae3fb1cf
parent 343105 9541461973eadf8ceab7422283211d643ecb24b5
child 343107 9d1b280faca1c227646818c3f32e43120683977f
push id31369
push userkwierso@gmail.com
push dateThu, 16 Feb 2017 00:18:40 +0000
treeherdermozilla-central@e9b926463f9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs1338184
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1338184 - remove unused GetGlobalContextWGL function; r=jgilbert clang-cl warns about this function being unused.
gfx/gl/GLContextProviderWGL.cpp
--- a/gfx/gl/GLContextProviderWGL.cpp
+++ b/gfx/gl/GLContextProviderWGL.cpp
@@ -426,22 +426,16 @@ IsValidSizeForFormat(HDC hDC, int format
     if (requested.width > max.width)
         return false;
     if (requested.height > max.height)
         return false;
 
     return true;
 }
 
-static GLContextWGL*
-GetGlobalContextWGL()
-{
-    return static_cast<GLContextWGL*>(GLContextProviderWGL::GetGlobalContext());
-}
-
 already_AddRefed<GLContext>
 GLContextProviderWGL::CreateWrappingExisting(void*, void*)
 {
     return nullptr;
 }
 
 already_AddRefed<GLContext>
 CreateForWidget(HWND aHwnd,