From c51d8d8e935c293160640e9c1cbdc9bab3198a08 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sat, 30 Jun 2018 02:01:08 +0300 Subject: [PATCH] utils: remove unused code Signed-off-by: Ruslan Kuprieiev --- dvc/utils.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/dvc/utils.py b/dvc/utils.py index 362ea7698..509cd101c 100644 --- a/dvc/utils.py +++ b/dvc/utils.py @@ -65,23 +65,6 @@ def dict_md5(d): return bytes_md5(byts) -def cached_property(func): - '''A decorator for caching properties in classes.''' - def get(self): - '''Try obtaining cache''' - try: - return self._property_cache[func] - except AttributeError: - self._property_cache = {} - ret = self._property_cache[func] = func(self) - return ret - except KeyError: - ret = self._property_cache[func] = func(self) - return ret - - return property(get) - - def copyfile(src, dest, no_progress_bar=False, name=None): '''Copy file with progress bar''' copied = 0