Skip to content

Commit

Permalink
Removed unused imports and unused utility functions
Browse files Browse the repository at this point in the history
  • Loading branch information
DJSchaffner committed Mar 26, 2021
1 parent ab865fa commit 98dfb25
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import shutil
import signal
import tempfile
import time
from enum import IntEnum
from queue import Queue
from collections import defaultdict
Expand Down
16 changes: 0 additions & 16 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
import os
import pathlib
import shutil
import locale
import re
import time
import win32api

from tkinter import Text
Expand Down Expand Up @@ -82,19 +79,6 @@ def remove_patched_files(original_dir: pathlib.Path, override_dir: pathlib.Path,
except BaseException as e:
raise e

def extract_date(date_string: str):
"""Extract a date in the format of 'd(d) Monthname yyyy'.
Returns a datetime object
"""
date_stripped = re.search(r"\d+ \w* \d+", date_string).group(0)

locale.setlocale(locale.LC_TIME, "en_US")
date = time.strptime(date_stripped, "%d %B %Y")
locale.setlocale(locale.LC_TIME, "de_DE")

return date

def check_dotnet():
"""Checks if dotnet is available."""
return not (shutil.which("dotnet") is None)
Expand Down
1 change: 0 additions & 1 deletion src/webhook.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
import time
import re
import json

Expand Down

0 comments on commit 98dfb25

Please sign in to comment.