From 226bf27cb713180524d8f42c4f2adfe4882eca3d Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Mon, 23 Oct 2023 21:37:41 +0330 Subject: [PATCH] os_utils.py: remove unused click_website and my_url_show --- pyglossary/os_utils.py | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/pyglossary/os_utils.py b/pyglossary/os_utils.py index 599b16051..a35f80d2f 100644 --- a/pyglossary/os_utils.py +++ b/pyglossary/os_utils.py @@ -3,7 +3,7 @@ import shutil import sys from pathlib import Path -from typing import TYPE_CHECKING, Any, Callable, Union +from typing import TYPE_CHECKING, Callable, Union from pyglossary import core @@ -154,29 +154,3 @@ def showMemoryUsage() -> None: return usage = psutil.Process(os.getpid()).memory_info().rss // 1024 core.trace(log, f"Memory Usage: {usage:,} kB") - - -def my_url_show(link: str) -> None: - import subprocess - for path in ( - '/usr/bin/gnome-www-browser', - '/usr/bin/firefox', - '/usr/bin/iceweasel', - '/usr/bin/konqueror', - ): - if os.path.isfile(path): - subprocess.call([path, link]) - break - - -# try: -# from gnome import url_show -# except: -# try: -# from gnomevfs import url_show -# except: -# url_show = my_url_show - - -def click_website(widget: "Any", link: str) -> None: - my_url_show(link)