backends/drm: remove unneeded methods in DrmBackend

This commit is contained in:
Xaver Hugl 2021-12-14 16:36:34 +01:00
parent 5d5bb2422c
commit 9781f43a48
2 changed files with 2 additions and 8 deletions

View file

@ -48,12 +48,6 @@ public:
Outputs outputs() const override;
Outputs enabledOutputs() const override;
QVector<DrmAbstractOutput*> drmOutputs() const {
return m_outputs;
}
QVector<DrmAbstractOutput*> drmEnabledOutputs() const {
return m_enabledOutputs;
}
void enableOutput(DrmAbstractOutput *output, bool enable);

View file

@ -23,9 +23,9 @@ DrmQPainterBackend::DrmQPainterBackend(DrmBackend *backend, DrmGpu *gpu)
, m_backend(backend)
, m_gpu(gpu)
{
const auto outputs = m_backend->drmOutputs();
const auto outputs = m_backend->enabledOutputs();
for (auto output: outputs) {
initOutput(output);
initOutput(static_cast<DrmAbstractOutput*>(output));
}
connect(m_gpu, &DrmGpu::outputEnabled, this, &DrmQPainterBackend::initOutput);
connect(m_gpu, &DrmGpu::outputDisabled, this,