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:
parent
0db071c218
commit
af862a9caf
3 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue