summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-07-25 21:36:52 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-18 02:57:43 +0200
commit5cf673d4782605da4b7e6bef984797bd1683b193 (patch)
tree28ab451b177dfea26458cd8bf680769095d11270 /wizards
parentb54c2c175704bafff492d0570ee0efd817b93bb1 (diff)
Remove unused method
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/common/Helper.py30
1 files changed, 2 insertions, 28 deletions
diff --git a/wizards/com/sun/star/wizards/common/Helper.py b/wizards/com/sun/star/wizards/common/Helper.py
index 83c34fb9ab10..fa0793a9a5b6 100644
--- a/wizards/com/sun/star/wizards/common/Helper.py
+++ b/wizards/com/sun/star/wizards/common/Helper.py
@@ -6,14 +6,6 @@ from NumberFormatter import NumberFormatter
class Helper(object):
- def convertUnoDatetoInteger(self, DateValue):
- oCal = java.util.Calendar.getInstance()
- oCal.set(DateValue.Year, DateValue.Month, DateValue.Day)
- dTime = oCal.getTime()
- lTime = dTime.getTime()
- lDate = lTime / (3600 * 24000)
- return lDate
-
@classmethod
def setUnoPropertyValue(self, xPSet, PropertyName, PropertyValue):
try:
@@ -28,10 +20,10 @@ class Helper(object):
@classmethod
def getUnoObjectbyName(self, xName, ElementName):
try:
- if xName.hasByName(ElementName) == True:
+ if xName.hasByName(ElementName):
return xName.getByName(ElementName)
else:
- raise RuntimeException();
+ raise RuntimeException()
except Exception, exception:
traceback.print_exc()
@@ -47,24 +39,6 @@ class Helper(object):
raise RuntimeException()
@classmethod
- def getPropertyValuefromAny(self, CurPropertyValue, PropertyName):
- try:
- if CurPropertyValue is not None:
- MaxCount = len(CurPropertyValue)
- i = 0
- while i < MaxCount:
- if CurPropertyValue[i] is not None:
- aValue = CurPropertyValue[i]
- if aValue is not None and aValue.Name == PropertyName:
- return aValue.Value
-
- i += 1
- return None
- except Exception, exception:
- traceback.print_exc()
- return None
-
- @classmethod
def getUnoPropertyValue(self, xPSet, PropertyName):
try:
if xPSet is not None: