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
This commit is contained in:
Vlad Zagorodniy 2019-04-16 01:26:28 +03:00
parent 0db071c218
commit af862a9caf
3 changed files with 1 additions and 5 deletions

View file

@ -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;
}

View file

@ -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);

View file

@ -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;
};