diff options
author | Xisco Fauli <anistenis@gmail.com> | 2014-02-11 23:36:35 +0100 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2014-02-13 19:18:18 +0100 |
commit | 6beb51ac12ddf381520c745430fd646767c63889 (patch) | |
tree | 72bdc369b8fca456f2f513df306707d888d9b307 /wizards/com/sun/star/wizards/common | |
parent | d9809c68f62af3b594854b142e1db5171804158d (diff) |
pywizards: remove unused code
Change-Id: I174ec6a1d307486d38ba4b98a5a158259c57151d
Diffstat (limited to 'wizards/com/sun/star/wizards/common')
-rw-r--r-- | wizards/com/sun/star/wizards/common/Desktop.py | 5 | ||||
-rw-r--r-- | wizards/com/sun/star/wizards/common/Resource.py | 10 |
2 files changed, 4 insertions, 11 deletions
diff --git a/wizards/com/sun/star/wizards/common/Desktop.py b/wizards/com/sun/star/wizards/common/Desktop.py index 4a18ca09a287..94a4a111f276 100644 --- a/wizards/com/sun/star/wizards/common/Desktop.py +++ b/wizards/com/sun/star/wizards/common/Desktop.py @@ -45,11 +45,6 @@ class Desktop(object): return xDesktop.getActiveFrame() @classmethod - def getActiveComponent(self, _xMSF): - xFrame = self.getActiveFrame(_xMSF) - return xFrame.getController().getModel() - - @classmethod def getDispatcher(self, xMSF, xFrame, _stargetframe, oURL): try: xDispatch = xFrame.queryDispatch(oURL, _stargetframe, ALL) diff --git a/wizards/com/sun/star/wizards/common/Resource.py b/wizards/com/sun/star/wizards/common/Resource.py index 472f0543e7e2..750c507d8330 100644 --- a/wizards/com/sun/star/wizards/common/Resource.py +++ b/wizards/com/sun/star/wizards/common/Resource.py @@ -50,12 +50,10 @@ class Resource(object): def getResArray(self, nID, iCount): try: - ResArray = list(range(iCount)) - i = 0 - while i < iCount: - ResArray[i] = getResText(nID + i) - i += 1 - return ResArray + resArray = [] + for i in range(iCount): + resArray.append(self.getResText(nID + i)) + return resArray except Exception: traceback.print_exc() raise ValueError("Resource with ID not" + str(nID) + " not found") |