Skip to content

Commit

Permalink
feat(effect): drop legacy screenshot dbus interface
Browse files Browse the repository at this point in the history
  • Loading branch information
zzag authored and romangg committed Apr 20, 2023
1 parent a5c5ba5 commit c871bc2
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1,094 deletions.
1 change: 0 additions & 1 deletion effect/effects/screenshot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
set(screenshot_SOURCES
main.cpp
screenshot.cpp
screenshotdbusinterface1.cpp
screenshotdbusinterface2.cpp
)

Expand Down
4 changes: 1 addition & 3 deletions effect/effects/screenshot/screenshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "screenshot.h"
#include "screenshotdbusinterface1.h"
#include "screenshotdbusinterface2.h"

#include <kwineffects/effect_window.h>
Expand Down Expand Up @@ -76,8 +75,7 @@ bool ScreenShotEffect::supported()
}

ScreenShotEffect::ScreenShotEffect()
: m_dbusInterface1(new ScreenShotDBusInterface1(this))
, m_dbusInterface2(new ScreenShotDBusInterface2(this))
: m_dbusInterface2(new ScreenShotDBusInterface2(this))
{
connect(effects, &EffectsHandler::screenAdded, this, &ScreenShotEffect::handleScreenAdded);
connect(effects, &EffectsHandler::screenRemoved, this, &ScreenShotEffect::handleScreenRemoved);
Expand Down
2 changes: 0 additions & 2 deletions effect/effects/screenshot/screenshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ enum ScreenShotFlag {
};
Q_DECLARE_FLAGS(ScreenShotFlags, ScreenShotFlag)

class ScreenShotDBusInterface1;
class ScreenShotDBusInterface2;
struct ScreenShotWindowData;
struct ScreenShotAreaData;
Expand Down Expand Up @@ -99,7 +98,6 @@ private Q_SLOTS:
QVector<ScreenShotAreaData> m_areaScreenShots;
QVector<ScreenShotScreenData> m_screenScreenShots;

QScopedPointer<ScreenShotDBusInterface1> m_dbusInterface1;
QScopedPointer<ScreenShotDBusInterface2> m_dbusInterface2;
EffectScreen* m_paintedScreen = nullptr;
};
Expand Down
Loading

0 comments on commit c871bc2

Please sign in to comment.