eglfs_kms: remove unused code

Task-number: QTBUG-62262
Change-Id: If21cbfcda2decf7bd70cf56695ee1d676cbaa55f
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
Laszlo Agocs 2017-08-02 12:44:07 +02:00
parent 06b360c65f
commit 18af543304
4 changed files with 1 additions and 26 deletions

View File

@ -139,25 +139,7 @@ gbm_surface *QEglFSKmsGbmScreen::createSurface()
GBM_FORMAT_XRGB8888,
GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING);
}
return m_gbm_surface;
}
void QEglFSKmsGbmScreen::destroySurface()
{
if (m_gbm_bo_current) {
gbm_bo_destroy(m_gbm_bo_current);
m_gbm_bo_current = Q_NULLPTR;
}
if (m_gbm_bo_next) {
gbm_bo_destroy(m_gbm_bo_next);
m_gbm_bo_next = Q_NULLPTR;
}
if (m_gbm_surface) {
gbm_surface_destroy(m_gbm_surface);
m_gbm_surface = Q_NULLPTR;
}
return m_gbm_surface; // not owned, gets destroyed in QEglFSKmsGbmIntegration::destroyNativeWindow()
}
void QEglFSKmsGbmScreen::waitForFlip()

View File

@ -61,7 +61,6 @@ public:
gbm_surface *surface() const { return m_gbm_surface; }
gbm_surface *createSurface();
void destroySurface();
void waitForFlip() override;
void flip() override;

View File

@ -177,10 +177,6 @@ QString QEglFSKmsScreen::serialNumber() const
return m_edid.serialNumber;
}
void QEglFSKmsScreen::destroySurface()
{
}
void QEglFSKmsScreen::waitForFlip()
{
}

View File

@ -89,8 +89,6 @@ public:
QKmsDevice *device() const { return m_device; }
void destroySurface();
virtual void waitForFlip();
virtual void flip();
virtual void flipFinished();