utils: remove dead code

This commit is contained in:
David de la Iglesia Castro
2022-07-22 16:30:51 +02:00
committed by daniele
parent c3ac4f84bf
commit f95e6340e0
-13
View File
@@ -3,7 +3,6 @@
import hashlib
import json
import logging
import math
import os
import re
import sys
@@ -59,18 +58,6 @@ def _split(list_to_split, chunk_size):
]
def _to_chunks_by_chunks_number(list_to_split, num_chunks):
chunk_size = int(math.ceil(float(len(list_to_split)) / num_chunks))
if len(list_to_split) == 1:
return [list_to_split]
if chunk_size == 0:
chunk_size = 1
return _split(list_to_split, chunk_size)
# NOTE: Check if we are in a bundle
# https://pythonhosted.org/PyInstaller/runtime-information.html
def is_binary():