summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorBogdan B <buzea.bogdan@libreoffice.org>2022-11-10 23:36:45 +0200
committerHossein <hossein@libreoffice.org>2023-12-29 23:56:27 +0100
commit4871de96cb5e31e5ab06cf97e02e09e0e04a4de8 (patch)
tree101b4e1869055d1df6c27d1b3645970b354af559 /wizards
parent4bea19cf84c125ab3f66dbb40d2379f2d385a865 (diff)
tdf#158803 Remove unused imports from wizards
Used pyflakes to find unused imports from wizards module. Then, removed those unused imports. Change-Id: I27f1c38871eafb57a5f914f4de3f825889b4ac68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142522 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py2
-rw-r--r--wizards/com/sun/star/wizards/common/Desktop.py3
-rw-r--r--wizards/com/sun/star/wizards/common/FileAccess.py1
-rw-r--r--wizards/com/sun/star/wizards/common/NumberFormatter.py2
-rw-r--r--wizards/com/sun/star/wizards/common/SystemDialog.py6
-rw-r--r--wizards/com/sun/star/wizards/common/UCB.py1
-rw-r--r--wizards/com/sun/star/wizards/fax/FaxWizardDialog.py1
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialog.py2
-rw-r--r--wizards/com/sun/star/wizards/ui/UnoDialog.py3
-rw-r--r--wizards/com/sun/star/wizards/ui/WizardDialog.py1
-rw-r--r--wizards/com/sun/star/wizards/ui/event/Task.py2
11 files changed, 9 insertions, 15 deletions
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
index 991b05f0459d..91933191a163 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
+++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialog.py
@@ -15,11 +15,11 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
+
from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
from .AgendaWizardDialogConst import AgendaWizardDialogConst, HID
from .AgendaWizardDialogResources import AgendaWizardDialogResources
-from com.sun.star.awt.FontUnderline import SINGLE
class AgendaWizardDialog(WizardDialog):
diff --git a/wizards/com/sun/star/wizards/common/Desktop.py b/wizards/com/sun/star/wizards/common/Desktop.py
index 99c9d60d8384..9469f9f5f403 100644
--- a/wizards/com/sun/star/wizards/common/Desktop.py
+++ b/wizards/com/sun/star/wizards/common/Desktop.py
@@ -19,8 +19,7 @@ import uno
import traceback
from com.sun.star.frame.FrameSearchFlag import ALL
-from com.sun.star.util import URL
-from com.sun.star.i18n.KParseTokens import ANY_LETTER_OR_NUMBER, ASC_UNDERSCORE
+
class Desktop(object):
diff --git a/wizards/com/sun/star/wizards/common/FileAccess.py b/wizards/com/sun/star/wizards/common/FileAccess.py
index c58f6d4b424c..bc8c424deb31 100644
--- a/wizards/com/sun/star/wizards/common/FileAccess.py
+++ b/wizards/com/sun/star/wizards/common/FileAccess.py
@@ -17,7 +17,6 @@
#
import traceback
-from os import sep as FileSeparator
'''
This class delivers static convenience methods
diff --git a/wizards/com/sun/star/wizards/common/NumberFormatter.py b/wizards/com/sun/star/wizards/common/NumberFormatter.py
index 54d84c9fc709..5d2f7ce6dc9d 100644
--- a/wizards/com/sun/star/wizards/common/NumberFormatter.py
+++ b/wizards/com/sun/star/wizards/common/NumberFormatter.py
@@ -15,9 +15,9 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
-import traceback
from com.sun.star.lang import Locale
+
class NumberFormatter(object):
def __init__(self, _xNumberFormatsSupplier, _aLocale, _xMSF=None):
diff --git a/wizards/com/sun/star/wizards/common/SystemDialog.py b/wizards/com/sun/star/wizards/common/SystemDialog.py
index 412029213039..35bcdadfac3b 100644
--- a/wizards/com/sun/star/wizards/common/SystemDialog.py
+++ b/wizards/com/sun/star/wizards/common/SystemDialog.py
@@ -16,17 +16,17 @@
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
import traceback
-from .Desktop import Desktop
+from .Desktop import Desktop
from com.sun.star.ui.dialogs.TemplateDescription import \
- FILESAVE_AUTOEXTENSION, FILEOPEN_SIMPLE
+ FILESAVE_AUTOEXTENSION
from com.sun.star.ui.dialogs.ExtendedFilePickerElementIds import \
CHECKBOX_AUTOEXTENSION
from com.sun.star.awt import WindowDescriptor
from com.sun.star.awt.WindowClass import MODALTOP
-from com.sun.star.lang import IllegalArgumentException
from com.sun.star.awt.VclWindowPeerAttribute import OK
+
class SystemDialog(object):
def __init__(self, xMSF, ServiceName, Type):
diff --git a/wizards/com/sun/star/wizards/common/UCB.py b/wizards/com/sun/star/wizards/common/UCB.py
index 1e52e4861362..ecd52be7462a 100644
--- a/wizards/com/sun/star/wizards/common/UCB.py
+++ b/wizards/com/sun/star/wizards/common/UCB.py
@@ -15,7 +15,6 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-import uno
import traceback
from abc import abstractmethod
diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py
index 6c8d4a40fac0..0153eb639d30 100644
--- a/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py
+++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialog.py
@@ -19,7 +19,6 @@ from .FaxWizardDialogResources import FaxWizardDialogResources
from .FaxWizardDialogConst import FaxWizardDialogConst, HIDMAIN, HID
from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
-from com.sun.star.awt.FontUnderline import SINGLE
class FaxWizardDialog(WizardDialog):
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py
index 0208de833f56..25f8323fac13 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialog.py
@@ -15,12 +15,12 @@
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
+
from .LetterWizardDialogConst import LetterWizardDialogConst, HIDMAIN, HID
from .LetterWizardDialogResources import LetterWizardDialogResources
from ..common.HelpIds import HelpIds
from ..ui.WizardDialog import WizardDialog, uno, UIConsts, PropertyNames
-from com.sun.star.awt.FontUnderline import SINGLE
class LetterWizardDialog(WizardDialog):
diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.py b/wizards/com/sun/star/wizards/ui/UnoDialog.py
index 37376f1eec45..174593b09ff8 100644
--- a/wizards/com/sun/star/wizards/ui/UnoDialog.py
+++ b/wizards/com/sun/star/wizards/ui/UnoDialog.py
@@ -18,13 +18,12 @@
#
import uno
import traceback
-from .PeerConfig import PeerConfig
from .UIConsts import UIConsts
from ..common.PropertyNames import PropertyNames
-
from com.sun.star.awt import Rectangle
from com.sun.star.awt.PosSize import POS
+
class UnoDialog(object):
createDict = False
diff --git a/wizards/com/sun/star/wizards/ui/WizardDialog.py b/wizards/com/sun/star/wizards/ui/WizardDialog.py
index e5970535142b..333c2e98b529 100644
--- a/wizards/com/sun/star/wizards/ui/WizardDialog.py
+++ b/wizards/com/sun/star/wizards/ui/WizardDialog.py
@@ -26,7 +26,6 @@ from ..common.FileAccess import FileAccess
from com.sun.star.lang import NoSuchMethodException
from com.sun.star.frame import TerminationVetoException
from com.sun.star.awt.PushButtonType import HELP, STANDARD
-from com.sun.star.awt.FontWeight import BOLD
import sys, os
diff --git a/wizards/com/sun/star/wizards/ui/event/Task.py b/wizards/com/sun/star/wizards/ui/event/Task.py
index aa44ed314e1e..95f47d0cc161 100644
--- a/wizards/com/sun/star/wizards/ui/event/Task.py
+++ b/wizards/com/sun/star/wizards/ui/event/Task.py
@@ -14,10 +14,10 @@
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-import traceback
from .TaskEvent import TaskEvent
+
class Task:
successful = 0
failed = 0