From 4006c6434e19b434c4cd7f3bed05bbee1d32c5b2 Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Mon, 23 Sep 2019 20:00:19 +0700 Subject: [PATCH] dvc: remove dead code in DataCloud --- dvc/data_cloud.py | 20 -------------------- tests/func/test_data_cloud.py | 4 ++-- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/dvc/data_cloud.py b/dvc/data_cloud.py index 841c8ffa8..af86efd64 100644 --- a/dvc/data_cloud.py +++ b/dvc/data_cloud.py @@ -6,14 +6,6 @@ import logging from dvc.config import Config, NoRemoteError from dvc.remote import Remote -from dvc.remote.s3 import RemoteS3 -from dvc.remote.gs import RemoteGS -from dvc.remote.azure import RemoteAZURE -from dvc.remote.oss import RemoteOSS -from dvc.remote.ssh import RemoteSSH -from dvc.remote.hdfs import RemoteHDFS -from dvc.remote.local import RemoteLOCAL -from dvc.remote.http import RemoteHTTP logger = logging.getLogger(__name__) @@ -30,18 +22,6 @@ class DataCloud(object): config.ConfigError: thrown when config has invalid format. """ - CLOUD_MAP = { - "aws": RemoteS3, - "gcp": RemoteGS, - "azure": RemoteAZURE, - "oss": RemoteOSS, - "ssh": RemoteSSH, - "hdfs": RemoteHDFS, - "local": RemoteLOCAL, - "http": RemoteHTTP, - "https": RemoteHTTP, - } - def __init__(self, repo): self.repo = repo diff --git a/tests/func/test_data_cloud.py b/tests/func/test_data_cloud.py index 780755c73..11c9eceed 100644 --- a/tests/func/test_data_cloud.py +++ b/tests/func/test_data_cloud.py @@ -15,8 +15,8 @@ from mock import patch from dvc.utils.compat import str from dvc.main import main from dvc.config import Config -from dvc.data_cloud import ( - DataCloud, +from dvc.data_cloud import DataCloud +from dvc.remote import ( RemoteS3, RemoteGS, RemoteAZURE,