Commit af862a9c authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Remove redundant AbstractOutput::internal() method

Summary: We already have AbstractOutput::isInternal() method.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D20587
parent 0db071c2
......@@ -150,9 +150,6 @@ protected:
void setOrientation(Qt::ScreenOrientation set) {
m_orientation = set;
}
bool internal() const {
return m_internal;
}
void setInternal(bool set) {
m_internal = set;
}
......
......@@ -248,7 +248,7 @@ bool DrmOutput::init(drmModeConnector *connector)
setInternal(connector->connector_type == DRM_MODE_CONNECTOR_LVDS || connector->connector_type == DRM_MODE_CONNECTOR_eDP);
setDpmsSupported(true);
if (internal()) {
if (isInternal()) {
connect(kwinApp(), &Application::screensCreated, this,
[this] {
connect(screens()->orientationSensor(), &OrientationSensor::orientationChanged, this, &DrmOutput::automaticRotation);
......
......@@ -165,7 +165,6 @@ private:
DrmDumbBuffer *m_cursor[2] = {nullptr, nullptr};
int m_cursorIndex = 0;
bool m_hasNewCursor = false;
bool m_internal = false;
bool m_deleted = false;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment