From c18622c8f4617b937debe943ff467a3a023e1c24 Mon Sep 17 00:00:00 2001 From: Randall Barker Date: Fri, 20 Jan 2017 15:41:48 -0800 Subject: [PATCH] Bug 1329362 - part 4, Remove unused Windows class AutoDestroyHWND from GLContextProviderEGL r=kats --- gfx/gl/GLContextProviderEGL.cpp | 35 --------------------------------- 1 file changed, 35 deletions(-) diff --git a/gfx/gl/GLContextProviderEGL.cpp b/gfx/gl/GLContextProviderEGL.cpp index afff99010629..09b447be1656 100644 --- a/gfx/gl/GLContextProviderEGL.cpp +++ b/gfx/gl/GLContextProviderEGL.cpp @@ -39,41 +39,6 @@ #endif #include - - // a little helper - class AutoDestroyHWND { - public: - explicit AutoDestroyHWND(HWND aWnd = nullptr) - : mWnd(aWnd) - { - } - - ~AutoDestroyHWND() { - if (mWnd) { - ::DestroyWindow(mWnd); - } - } - - operator HWND() { - return mWnd; - } - - HWND forget() { - HWND w = mWnd; - mWnd = nullptr; - return w; - } - - HWND operator=(HWND aWnd) { - if (mWnd && mWnd != aWnd) { - ::DestroyWindow(mWnd); - } - mWnd = aWnd; - return mWnd; - } - - HWND mWnd; - }; #else #error "Platform not recognized" #endif