From 6e67802648356a00cdbe9e2e6770199e227a03cd Mon Sep 17 00:00:00 2001 From: Bogdan B Date: Fri, 29 Dec 2023 09:36:05 +0000 Subject: tdf#158803 Remove unused imports from odk Used pyflakes to find unused imports from odk module. Then, removed those unused imports. Change-Id: If1a160fa99f0c3581687faecb0c7051625c478c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158821 Tested-by: Jenkins Reviewed-by: Hossein --- .../FirstSteps/FirstLoadComponent/python/FirstLoadComponent.py | 1 - .../FirstSteps/FirstUnoContact/python/FirstUnoContact.py | 1 - .../FirstSteps/HelloTextTableShape/python/HelloTextTableShape.py | 1 - odk/examples/python/DocumentHandling/DocumentConverter.py | 1 - odk/examples/python/DocumentHandling/DocumentPrinter.py | 1 - odk/examples/python/DocumentHandling/DocumentSaver.py | 1 - odk/examples/python/Text/HardFormatting.py | 1 - odk/examples/python/Text/TextReplace.py | 2 -- odk/examples/python/toolpanel/toolpanel.py | 1 - 9 files changed, 10 deletions(-) (limited to 'odk') diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/python/FirstLoadComponent.py b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/python/FirstLoadComponent.py index a5d93d799f8c..6c7e861a3747 100755 --- a/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/python/FirstLoadComponent.py +++ b/odk/examples/DevelopersGuide/FirstSteps/FirstLoadComponent/python/FirstLoadComponent.py @@ -7,7 +7,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import uno import officehelper import sys import traceback diff --git a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/python/FirstUnoContact.py b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/python/FirstUnoContact.py index 06cd0bc5a719..62d618895555 100644 --- a/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/python/FirstUnoContact.py +++ b/odk/examples/DevelopersGuide/FirstSteps/FirstUnoContact/python/FirstUnoContact.py @@ -7,7 +7,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # -import uno import officehelper try: diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/python/HelloTextTableShape.py b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/python/HelloTextTableShape.py index a0a101e618cc..2e2ab2ee65b3 100644 --- a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/python/HelloTextTableShape.py +++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/python/HelloTextTableShape.py @@ -10,7 +10,6 @@ import sys import traceback -import uno import officehelper from com.sun.star.lang import DisposedException diff --git a/odk/examples/python/DocumentHandling/DocumentConverter.py b/odk/examples/python/DocumentHandling/DocumentConverter.py index a1f54fca9102..c2683b8c7cb7 100644 --- a/odk/examples/python/DocumentHandling/DocumentConverter.py +++ b/odk/examples/python/DocumentHandling/DocumentConverter.py @@ -13,7 +13,6 @@ import sys from os.path import abspath, basename, isdir, join, splitext import uno -import unohelper from com.sun.star.beans import PropertyValue from com.sun.star.connection import NoConnectException diff --git a/odk/examples/python/DocumentHandling/DocumentPrinter.py b/odk/examples/python/DocumentHandling/DocumentPrinter.py index d9a4e29632c7..e0397223fa28 100644 --- a/odk/examples/python/DocumentHandling/DocumentPrinter.py +++ b/odk/examples/python/DocumentHandling/DocumentPrinter.py @@ -12,7 +12,6 @@ import sys from os.path import abspath, basename import uno -import unohelper from com.sun.star.beans import PropertyValue from com.sun.star.connection import NoConnectException diff --git a/odk/examples/python/DocumentHandling/DocumentSaver.py b/odk/examples/python/DocumentHandling/DocumentSaver.py index e7d8010a231a..9105a5c7f33f 100644 --- a/odk/examples/python/DocumentHandling/DocumentSaver.py +++ b/odk/examples/python/DocumentHandling/DocumentSaver.py @@ -12,7 +12,6 @@ import sys from os.path import basename, abspath import uno -import unohelper from com.sun.star.beans import PropertyValue from com.sun.star.connection import NoConnectException diff --git a/odk/examples/python/Text/HardFormatting.py b/odk/examples/python/Text/HardFormatting.py index 9a9734c60bae..3196ac33dd7c 100644 --- a/odk/examples/python/Text/HardFormatting.py +++ b/odk/examples/python/Text/HardFormatting.py @@ -11,7 +11,6 @@ import officehelper import sys import traceback -from com.sun.star.awt import Size from com.sun.star.awt.FontWeight import BOLD from com.sun.star.beans.PropertyState import AMBIGUOUS_VALUE from com.sun.star.beans.PropertyState import DEFAULT_VALUE diff --git a/odk/examples/python/Text/TextReplace.py b/odk/examples/python/Text/TextReplace.py index 78d301998fe4..3aeb12cfa88e 100644 --- a/odk/examples/python/Text/TextReplace.py +++ b/odk/examples/python/Text/TextReplace.py @@ -11,9 +11,7 @@ import officehelper import sys import traceback -from com.sun.star.awt import Size from com.sun.star.text.ControlCharacter import PARAGRAPH_BREAK -from com.sun.star.text.TextContentAnchorType import AS_CHARACTER def get_desktop(): diff --git a/odk/examples/python/toolpanel/toolpanel.py b/odk/examples/python/toolpanel/toolpanel.py index 8fcfb3f322fe..a4b05b8ca46f 100644 --- a/odk/examples/python/toolpanel/toolpanel.py +++ b/odk/examples/python/toolpanel/toolpanel.py @@ -18,7 +18,6 @@ # inspired by core/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent # -import uno import unohelper from com.sun.star.ui import XUIElementFactory -- cgit