summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/Resource.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2014-02-11 23:36:35 +0100
committerXisco Fauli <anistenis@gmail.com>2014-02-13 19:18:18 +0100
commit6beb51ac12ddf381520c745430fd646767c63889 (patch)
tree72bdc369b8fca456f2f513df306707d888d9b307 /wizards/com/sun/star/wizards/common/Resource.py
parentd9809c68f62af3b594854b142e1db5171804158d (diff)
pywizards: remove unused code
Change-Id: I174ec6a1d307486d38ba4b98a5a158259c57151d
Diffstat (limited to 'wizards/com/sun/star/wizards/common/Resource.py')
-rw-r--r--wizards/com/sun/star/wizards/common/Resource.py10
1 files changed, 4 insertions, 6 deletions
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")