Commit dc88167b authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

pylint: remove unnecessary pass statements

parent 1e97d453
......@@ -627,7 +627,6 @@ class SelectorBoard(CourtBoard):
def checkTiles(self):
"""does not apply"""
pass
def load(self, game):
"""load the tiles according to game.ruleset"""
......
......@@ -25,7 +25,6 @@ except ImportError:
except ImportError:
def unwrapinstance(unused):
"""if there is no sip, we have no Qt objects anyway"""
pass
# pylint: disable=invalid-name
......
......@@ -81,7 +81,6 @@ class PlayConfigTab(QWidget):
def retranslateUi(self):
"""translate to current language"""
pass
class ConfigDialog(KConfigDialog): # pylint: disable=too-many-public-methods
......
......@@ -296,7 +296,6 @@ class Game:
def _scanGameOption(self):
"""this is only done for PlayingGame"""
pass
@property
def lastDiscard(self):
......@@ -843,7 +842,6 @@ class PlayingGame(Game):
def _setGameId(self):
"""do nothing, we already went through the game id reservation"""
pass
@property
def activePlayer(self):
......
......@@ -273,7 +273,6 @@ class HandBoard(Board):
def _avoidCrossingMovements(self, places):
"""not needed for all HandBoards"""
pass
def sync(self, adding=None):
"""place all tiles in HandBoard.
......
......@@ -46,7 +46,6 @@ from rule import Ruleset
class LoginAborted(Exception):
"""the user aborted the login"""
pass
class Url(str, StrMixin):
......
......@@ -638,7 +638,6 @@ class MessageAssignVoices(ServerMessage):
class MessageClientWantsVoiceData(ClientMessage):
"""This client wants voice sounds"""
pass
class MessageServerWantsVoiceData(ServerMessage):
......@@ -784,7 +783,6 @@ class MessageError(ServerMessage):
class MessageNO(ClientMessage):
"""a client says no"""
pass
class MessageOK(ClientMessage):
......
......@@ -133,4 +133,3 @@ class Resource:
@staticmethod
def current():
"""the currently wanted tileset. If not yet defined, do so"""
pass
......@@ -370,15 +370,12 @@ class Player(StrMixin):
def syncHandBoard(self, adding=None):
"""virtual: synchronize display"""
pass
def colorizeName(self):
"""virtual: colorize Name on wall"""
pass
def getsFocus(self, unusedResults=None):
"""virtual: player gets focus on his hand"""
pass
def mjString(self):
"""compile hand info into a string as needed by the scoring engine"""
......@@ -489,15 +486,12 @@ class PlayingPlayer(Player):
def popupMsg(self, msg):
"""virtual: show popup on display"""
pass
def hidePopup(self):
"""virtual: hide popup on display"""
pass
def speak(self, txt):
"""only a visible playing player can speak"""
pass
def declaredMahJongg(self, concealed, withDiscard, lastTile, lastMeld):
"""player declared mah jongg. Determine last meld, show concealed tiles grouped to melds"""
......
......@@ -1036,7 +1036,6 @@ class PredefinedRuleset(Ruleset):
def rules(self):
"""here the predefined rulesets can define their rules"""
pass
def clone(self):
"""return a clone, unloaded"""
......
......@@ -16,7 +16,6 @@ from tile import Tile, elements
class WallEmpty(Exception):
"""exception when trying to get a tile off the empty wall"""
pass
class KongBox:
......@@ -106,7 +105,6 @@ class Wall(StrMixin):
def _placeLooseTiles(self, deferredResult=None):
"""to be done only for UIWall"""
pass
def decorate4(self, deferredResult=None): # pylint: disable=unused-argument
"""virtual: show player info on the wall"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment