From 41a291c40b8e647b48ce2899157a34ca22b233dc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 31 May 2021 17:05:32 +0100 Subject: [PATCH] Remove unused functions --- utils.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/utils.py b/utils.py index 3a7f8a20c..148199f68 100644 --- a/utils.py +++ b/utils.py @@ -1634,22 +1634,6 @@ def getCSS(baseDir: str, cssFilename: str, cssCache: {}) -> str: return None -def daysInMonth(year: int, monthNumber: int) -> int: - """Returns the number of days in the month - """ - if monthNumber < 1 or monthNumber > 12: - return None - daysRange = monthrange(year, monthNumber) - return daysRange[1] - - -def mergeDicts(dict1: {}, dict2: {}) -> {}: - """Merges two dictionaries - """ - res = {**dict1, **dict2} - return res - - def isEventPost(messageJson: {}) -> bool: """Is the given post a mobilizon-type event activity? See https://framagit.org/framasoft/mobilizon/-/blob/