remove old code useless code found by pylint "(unnecessary-pass) Unnecessary pass statement"
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Tue, 10 Oct 2017 12:50:10 +0300
changeset 1857 524ff4dbb7d9
parent 1856 c2cba67145eb
child 1858 4c5156dee87a
remove old code useless code found by pylint "(unnecessary-pass) Unnecessary pass statement"
graphics/GraphicCommons.py
tests/tools/check_source.sh
--- a/graphics/GraphicCommons.py	Tue Oct 10 12:34:50 2017 +0300
+++ b/graphics/GraphicCommons.py	Tue Oct 10 12:50:10 2017 +0300
@@ -1647,9 +1647,6 @@
     def SetSize(width, height):
         pass
 
-    # Forbids to et size of the group elements to their minimum size
-        pass
-
     # Moves and Resizes the element for fitting scaling
     def SetBestSize(self, scaling):
         if scaling is not None:
--- a/tests/tools/check_source.sh	Tue Oct 10 12:34:50 2017 +0300
+++ b/tests/tools/check_source.sh	Tue Oct 10 12:50:10 2017 +0300
@@ -234,6 +234,7 @@
     enable=$enable,C0112          # (empty-docstring)
     enable=$enable,W0631          # (undefined-loop-variable) Using possibly undefined loop variable 'X'
     enable=$enable,W0104          # (pointless-statement) Statement seems to have no effect
+    enable=$enable,W0107          # (unnecessary-pass) Unnecessary pass statement
     # enable=
 
     options=