Remove Compositor created check
ClosedPublic

Authored by romangg on Jul 4 2019, 6:02 PM.

Details

Summary

Cleans up the Compositor code some more. The check is only
used in a single assert statement.

Test Plan

Compiles.

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
romangg created this revision.Jul 4 2019, 6:02 PM
Restricted Application added a project: KWin. · View Herald TranscriptJul 4 2019, 6:02 PM
Restricted Application added a subscriber: kwin. · View Herald Transcript
romangg requested review of this revision.Jul 4 2019, 6:02 PM
zzag accepted this revision.Jul 4 2019, 6:12 PM
zzag added a subscriber: zzag.
zzag added inline comments.
thumbnailitem.cpp
44

Perhaps it's still a good idea to verify that the compositor is created by doing Q_ASSERT(Compositor::self()).

This revision is now accepted and ready to land.Jul 4 2019, 6:12 PM
zzag added inline comments.Jul 4 2019, 6:14 PM
thumbnailitem.cpp
44

... though it doesn't matter. If the compositor is not created by this time, we'll crash in either case.

This revision was automatically updated to reflect the committed changes.
romangg marked 2 inline comments as done.