mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
deps/outs: remove load{s,d}_from methods
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -65,7 +65,3 @@ class DependencyBase(object):
|
||||
@classmethod
|
||||
def loads(cls, stage, s):
|
||||
return cls(stage, s)
|
||||
|
||||
@classmethod
|
||||
def loads_from(cls, stage, s_list):
|
||||
return [cls.loads(stage, x) for x in s_list]
|
||||
|
||||
@@ -92,14 +92,6 @@ class DependencyLOCAL(DependencyBase):
|
||||
md5 = d.get(cls.PARAM_MD5, None)
|
||||
return cls(stage, path, md5=md5)
|
||||
|
||||
@classmethod
|
||||
def loadd_from(cls, stage, d_list):
|
||||
return [cls.loadd(stage, x) for x in d_list]
|
||||
|
||||
@classmethod
|
||||
def loads(cls, stage, s):
|
||||
return cls(stage, os.path.join(stage.cwd, s), md5=None)
|
||||
|
||||
@classmethod
|
||||
def loads_from(cls, stage, s_list):
|
||||
return [cls.loads(stage, x) for x in s_list]
|
||||
|
||||
@@ -58,7 +58,3 @@ class DependencyS3(DependencyBase):
|
||||
@classmethod
|
||||
def loads(cls, stage, s):
|
||||
return cls(stage, s, etag=None)
|
||||
|
||||
@classmethod
|
||||
def loads_from(cls, stage, s_list):
|
||||
return [cls.loads(stage, x) for x in s_list]
|
||||
|
||||
@@ -34,10 +34,6 @@ class OutputGS(DependencyGS):
|
||||
ret.use_cache = use_cache
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
def loads_from(cls, stage, s_list, use_cache=True):
|
||||
return [cls.loads(stage, x, use_cache=use_cache) for x in s_list]
|
||||
|
||||
def changed(self):
|
||||
if super(OutputGS, self).changed():
|
||||
return True
|
||||
|
||||
@@ -47,10 +47,6 @@ class OutputLOCAL(DependencyLOCAL):
|
||||
ret.use_cache = use_cache
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
def loads_from(cls, stage, s_list, use_cache=False):
|
||||
return [cls.loads(stage, x, use_cache=use_cache) for x in s_list]
|
||||
|
||||
def changed(self):
|
||||
if super(OutputLOCAL, self).changed():
|
||||
return True
|
||||
|
||||
@@ -34,10 +34,6 @@ class OutputS3(DependencyS3):
|
||||
ret.use_cache = use_cache
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
def loads_from(cls, stage, s_list, use_cache=True):
|
||||
return [cls.loads(stage, x, use_cache=use_cache) for x in s_list]
|
||||
|
||||
def changed(self):
|
||||
if super(OutputS3, self).changed():
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user