Skip to content

Commit

Permalink
Remove test and rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
flacjacket authored Mar 13, 2024
1 parent 79c6dcf commit feedcdd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions wlroots/wlr_types/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,6 @@ def __enter__(self) -> Output:
def __exit__(self, exc_type, exc_value, exc_tb) -> None:
"""Stop rendering frame, commit when exiting normally, otherwise rollback"""
if exc_type is None:
if not self.test():
self.rollback()
raise RuntimeError("Rendering on output failed")
if not self.commit():
raise RuntimeError("Unable to commit output")
else:
Expand Down

0 comments on commit feedcdd

Please sign in to comment.