diff options
author | Bogdan B <buzea.bogdan@libreoffice.org> | 2023-11-02 21:34:25 +0200 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2023-12-29 09:54:42 +0100 |
commit | 605c2888786b02e34ab586aa462cc1e84843dad2 (patch) | |
tree | 1ccbf221502ce6025119ff680b6bf1477a4c545e /bin | |
parent | beb2b1d6b1b23e941d1a6a34dc68a16ec7167c1b (diff) |
tdf#158803 Remove unused imports from bin
Used pyflakes to find unused imports from bin/ folder. Then, removed
those unused imports.
Change-Id: I439dbc443d6da6d82700ff9caf2f4f2677f46b5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158819
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/benchmark-document-loading | 3 | ||||
-rwxr-xr-x | bin/check-autocorr.py | 1 | ||||
-rwxr-xr-x | bin/compare-crashreport-stats.py | 1 | ||||
-rwxr-xr-x | bin/find-can-be-private-symbols.py | 1 | ||||
-rwxr-xr-x | bin/find-files-not-referenced-by-makefile.py | 1 | ||||
-rwxr-xr-x | bin/find-headers-to-move-inside-modules.py | 1 | ||||
-rwxr-xr-x | bin/find-mergedlib-can-be-private.py | 1 | ||||
-rwxr-xr-x | bin/find-most-common-warn-messages.py | 3 | ||||
-rwxr-xr-x | bin/find-unneeded-includes | 1 | ||||
-rwxr-xr-x | bin/update/create_full_mar.py | 1 |
10 files changed, 1 insertions, 13 deletions
diff --git a/bin/benchmark-document-loading b/bin/benchmark-document-loading index 9ecf43baffb3..9295b95d5783 100644 --- a/bin/benchmark-document-loading +++ b/bin/benchmark-document-loading @@ -57,9 +57,8 @@ except ImportError: raise try: - from com.sun.star.beans import PropertyValue from com.sun.star.document import XDocumentEventListener - from com.sun.star.io import IOException, XOutputStream + from com.sun.star.io import XOutputStream except ImportError: print("UNO API class not found: try to set URE_BOOTSTRAP variable") print("URE_BOOTSTRAP=file:///installation/opt/program/fundamentalrc") diff --git a/bin/check-autocorr.py b/bin/check-autocorr.py index ebf1b50b1911..f865d3e891ce 100755 --- a/bin/check-autocorr.py +++ b/bin/check-autocorr.py @@ -11,7 +11,6 @@ # Usage sample: ./bin/check-autocorr.py extras/source/autocorr/lang/tr/DocumentList.xml import sys -import os import xml.etree.ElementTree as ET complete_file = sys.argv[1] diff --git a/bin/compare-crashreport-stats.py b/bin/compare-crashreport-stats.py index 26db30c24885..437b047eadcf 100755 --- a/bin/compare-crashreport-stats.py +++ b/bin/compare-crashreport-stats.py @@ -12,7 +12,6 @@ import requests from bs4 import BeautifulSoup import argparse -import sys def parse_url(url): crashReports = {} diff --git a/bin/find-can-be-private-symbols.py b/bin/find-can-be-private-symbols.py index b45dd181caf7..d2835b0af1d7 100755 --- a/bin/find-can-be-private-symbols.py +++ b/bin/find-can-be-private-symbols.py @@ -17,7 +17,6 @@ # import subprocess -import sys import re exported_symbols1 = set() diff --git a/bin/find-files-not-referenced-by-makefile.py b/bin/find-files-not-referenced-by-makefile.py index 0b5c648bf67e..bbe7cc7aaa5f 100755 --- a/bin/find-files-not-referenced-by-makefile.py +++ b/bin/find-files-not-referenced-by-makefile.py @@ -3,7 +3,6 @@ # Look for CXX files that are not referenced by any makefile import subprocess -import sys sourceFiles = set() diff --git a/bin/find-headers-to-move-inside-modules.py b/bin/find-headers-to-move-inside-modules.py index 67060ee29fbd..5a3713046481 100755 --- a/bin/find-headers-to-move-inside-modules.py +++ b/bin/find-headers-to-move-inside-modules.py @@ -4,7 +4,6 @@ # Not 100% accurate import subprocess -import sys headerSet = set() a = subprocess.Popen("git ls-files include/", stdout=subprocess.PIPE, shell=True) diff --git a/bin/find-mergedlib-can-be-private.py b/bin/find-mergedlib-can-be-private.py index b532a73c182f..19082a0ee5e9 100755 --- a/bin/find-mergedlib-can-be-private.py +++ b/bin/find-mergedlib-can-be-private.py @@ -6,7 +6,6 @@ # import subprocess -import sys import re import multiprocessing diff --git a/bin/find-most-common-warn-messages.py b/bin/find-most-common-warn-messages.py index dc2ecf8ab014..392fff74a08c 100755 --- a/bin/find-most-common-warn-messages.py +++ b/bin/find-most-common-warn-messages.py @@ -3,9 +3,6 @@ # A script to search our test logs and sort the messages by how common they are so we can start to # reduce the noise a little. -import sys -import re -import io import subprocess # find . -name '*.log' | xargs grep -h 'warn:' | sort | uniq -c | sort -n --field-separator=: --key=5,6 diff --git a/bin/find-unneeded-includes b/bin/find-unneeded-includes index a6cfebde0c10..12659fa82a31 100755 --- a/bin/find-unneeded-includes +++ b/bin/find-unneeded-includes @@ -17,7 +17,6 @@ # - no custom configure options required # - no need to generate a dummy library to build a header -import glob import json import multiprocessing import os diff --git a/bin/update/create_full_mar.py b/bin/update/create_full_mar.py index c0d315920ec7..f3ccc972afce 100755 --- a/bin/update/create_full_mar.py +++ b/bin/update/create_full_mar.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -import sys import os import subprocess import json |