Remove unused function

This commit is contained in:
Joseph Schorr 2018-11-26 21:29:53 +02:00
parent 4e1ff90cb2
commit d03eb12a77

View file

@ -1,8 +1,4 @@
import json
import tarfile
from cachetools import lru_cache
from io import BytesIO
from image.docker.interfaces import ContentRetriever
@ -26,12 +22,3 @@ class ContentRetrieverForTesting(ContentRetriever):
digests = {}
digests[digest] = padded_string
return ContentRetrieverForTesting(digests)
@lru_cache(maxsize=1)
def generate_empty_layer_data():
""" Generates the layer data for an "empty" layer. """
with BytesIO() as f:
tar_file = tarfile.open(fileobj=f, mode='w|gw')
tar_file.close()
return f.getvalue()