guestrendering/guestegl/src/guestegl.cpp
branchbug235_bringup_0
changeset 17 c9d1eb0bfac8
parent 13 220791dae4c4
child 18 3064c37a6509
--- a/guestrendering/guestegl/src/guestegl.cpp	Wed Sep 08 17:36:16 2010 +0100
+++ b/guestrendering/guestegl/src/guestegl.cpp	Wed Sep 08 18:56:14 2010 +0100
@@ -32,7 +32,6 @@
 //
 
 // FAISALMEMON STUB CODE
-#define PITCH_OF_TWIPS_PIXELS(a, b) 1 /* This is incorrect; just a stub*/
 #define EGL_CHECK_ERROR(a, b, c)      /* This does no checking; just a stub */
 void CGuestEGL::EglInternalFunction_DestroyWindowSurface(TSurfaceInfo&)
 	{
@@ -766,36 +765,6 @@
 	return result;
 	}
 
-// -----------------------------------------------------------------------------
-//
-// -----------------------------------------------------------------------------
-//
-TInt CGuestEGL::EglInternalFunction_GetPitch(RWindow* aNativeWindow, TInt& aHorizontalPitch, TInt& aVerticalPitch)
-    {
-    RWsSession* ws = aNativeWindow->Session();
-    CWsScreenDevice* screenDevice = new CWsScreenDevice(*ws);
-    if ( !screenDevice )
-        {
-        return KErrNoMemory;
-        }
-    TInt err = screenDevice->Construct();
-
-    if ( KErrNone == err )
-        {
-        TSize pixelSize = screenDevice->SizeInPixels();
-        TSize twipSize  = screenDevice->SizeInTwips();
-
-        aHorizontalPitch = PITCH_OF_TWIPS_PIXELS(twipSize.iWidth , pixelSize.iWidth);
-        aVerticalPitch = PITCH_OF_TWIPS_PIXELS(twipSize.iHeight, pixelSize.iHeight);
-        }
-    delete screenDevice;
-    return err;
-    }
-
-// -----------------------------------------------------------------------------
-//
-// -----------------------------------------------------------------------------
-//
 EGLBoolean CGuestEGL::eglSwapBuffers(TEglThreadState& aThreadState, EGLDisplay aDisplay, EGLSurface aSurface)
     {
     EglInternalFunction_SwapWindowSurface(aThreadState, aDisplay, aSurface);