[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegames/kajongg/src (silent)
From:       Wolfgang Rohdewald <wolfgang () rohdewald ! de>
Date:       2012-03-19 12:20:45
Message-ID: 20120319122045.CCE99AC899 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1286282 by wrohdewald:

remove unused code

SVN_SILENT

 M  +0 -25     humanclient.py  


--- trunk/KDE/kdegames/kajongg/src/humanclient.py #1286281:1286282
@@ -258,31 +258,6 @@
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(equal and self.edUser.text().size())
 
     @apply
-    def host():
-        """abstracts the host of the dialog"""
-        def fget(self):
-            text = english(unicode(self.cbServer.currentText()))
-            if ':' not in text:
-                return text
-            hostargs = text.rpartition(':')
-            return ''.join(hostargs[0])
-        return property(**locals())
-
-    @apply
-    def port():
-        """abstracts the port of the dialog"""
-        def fget(self):
-            text = unicode(self.cbServer.currentText())
-            if ':' not in text:
-                return common.PREF.serverPort
-            hostargs = unicode(self.cbServer.currentText()).rpartition(':')
-            try:
-                return int(hostargs[2])
-            except ValueError:
-                return common.PREF.serverPort
-        return property(**locals())
-
-    @apply
     def username(): # pylint: disable=E0202
         """abstracts the username of the dialog"""
         def fget(self):
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic