mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
utils: remove dead code
This commit is contained in:
committed by
daniele
parent
c3ac4f84bf
commit
f95e6340e0
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user