From 5cf673d4782605da4b7e6bef984797bd1683b193 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Mon, 25 Jul 2011 21:36:52 +0200 Subject: Remove unused method --- wizards/com/sun/star/wizards/common/Helper.py | 30 ++------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) (limited to 'wizards') 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() @@ -46,24 +38,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: -- cgit