kmscube: remove unused field
[android/external-libkmsxx.git] / kmscube / cube-gbm.cpp
index d015c55f64de16abd2d9b520c5263e042bdf1c5b..022c7618e23ca2ca12656fb3242b0b68b9affbc0 100644 (file)
@@ -89,7 +89,7 @@ class GbmEglSurface
 {
 public:
        GbmEglSurface(Card& card, GbmDevice& gdev, const EglState& egl, int width, int height)
-               : card(card), gdev(gdev), egl(egl), m_width(width), m_height(height),
+               : card(card), egl(egl), m_width(width), m_height(height),
                  bo_prev(0), bo_next(0)
        {
                gsurface = unique_ptr<GbmSurface>(new GbmSurface(gdev, width, height));
@@ -140,7 +140,7 @@ public:
                return fb;
        }
 
-       struct Framebuffer* lock_next()
+       Framebuffer* lock_next()
        {
                bo_prev = bo_next;
                bo_next = gsurface->lock_front_buffer();
@@ -161,7 +161,6 @@ public:
 
 private:
        Card& card;
-       GbmDevice& gdev;
        const EglState& egl;
 
        unique_ptr<GbmSurface> gsurface;
@@ -201,9 +200,9 @@ public:
 
                m_surface1->make_current();
                m_surface1->swap_buffers();
-               struct Framebuffer* fb = m_surface1->lock_next();
+               Framebuffer* fb = m_surface1->lock_next();
 
-               struct Framebuffer* planefb = 0;
+               Framebuffer* planefb = 0;
 
                if (m_plane) {
                        m_surface2->make_current();
@@ -272,9 +271,9 @@ private:
                m_surface1->make_current();
                m_scene1->draw(m_frame_num * m_rotation_mult);
                m_surface1->swap_buffers();
-               struct Framebuffer* fb = m_surface1->lock_next();
+               Framebuffer* fb = m_surface1->lock_next();
 
-               struct Framebuffer* planefb = 0;
+               Framebuffer* planefb = 0;
 
                if (m_plane) {
                        m_surface2->make_current();