backends/wayland: Drop WaylandBackend::getOutputAt()
It's unused.
This commit is contained in:
parent
00b21992c4
commit
0047dfc596
2 changed files with 0 additions and 11 deletions
|
@ -520,16 +520,6 @@ std::unique_ptr<QPainterBackend> WaylandBackend::createQPainterBackend()
|
|||
return std::make_unique<WaylandQPainterBackend>(this);
|
||||
}
|
||||
|
||||
WaylandOutput *WaylandBackend::getOutputAt(const QPointF &globalPosition)
|
||||
{
|
||||
const auto pos = globalPosition.toPoint();
|
||||
auto checkPosition = [pos](WaylandOutput *output) {
|
||||
return output->geometry().contains(pos);
|
||||
};
|
||||
auto it = std::find_if(m_outputs.constBegin(), m_outputs.constEnd(), checkPosition);
|
||||
return it == m_outputs.constEnd() ? nullptr : *it;
|
||||
}
|
||||
|
||||
WaylandOutput *WaylandBackend::findOutput(KWayland::Client::Surface *nativeSurface) const
|
||||
{
|
||||
for (WaylandOutput *output : m_outputs) {
|
||||
|
|
|
@ -205,7 +205,6 @@ public:
|
|||
|
||||
QVector<CompositingType> supportedCompositors() const override;
|
||||
|
||||
WaylandOutput *getOutputAt(const QPointF &globalPosition);
|
||||
WaylandOutput *findOutput(KWayland::Client::Surface *nativeSurface) const;
|
||||
Outputs outputs() const override;
|
||||
QVector<WaylandOutput *> waylandOutputs() const
|
||||
|
|
Loading…
Reference in a new issue