diff --git a/dvc/data_cloud.py b/dvc/data_cloud.py index d55eb86fd..3568ae4cb 100644 --- a/dvc/data_cloud.py +++ b/dvc/data_cloud.py @@ -60,12 +60,6 @@ class DataCloud(object): if remote: return self._init_remote(remote) - # Old config format support for backward compatibility - if Config.SECTION_CORE_CLOUD in self._core: - msg = "using obsoleted config format. Consider updating." - logger.warning(msg) - return self._init_compat() - raise ConfigError( "No remote repository specified. Setup default repository with\n" " dvc config core.remote \n" @@ -76,36 +70,6 @@ class DataCloud(object): def _init_remote(self, remote): return Remote(self.repo, name=remote) - def _init_compat(self): - name = self._core.get(Config.SECTION_CORE_CLOUD, "").strip().lower() - if name == "": - return None - - cloud_type = self.CLOUD_MAP.get(name, None) - if not cloud_type: - msg = "wrong cloud type '{}' specified".format(name) - raise ConfigError(msg) - - cloud_config = self._config.get(name, None) - if not cloud_config: - msg = "can't find cloud section '{}' in config".format(name) - raise ConfigError(msg) - - # NOTE: check if the class itself has everything needed for operation. - # E.g. all the imported packages. - if not cloud_type.supported(cloud_type.compat_config(cloud_config)): - raise ConfigError("unsupported cloud '{}'".format(name)) - - return self._init_cloud(cloud_config, cloud_type) - - def _init_cloud(self, cloud_config, cloud_type): - global_storage_path = self._core.get(Config.SECTION_CORE_STORAGEPATH) - if global_storage_path: - logger.warning("using obsoleted config format. Consider updating.") - - cloud = cloud_type(self.repo, cloud_config) - return cloud - def push(self, targets, jobs=None, remote=None, show_checksums=False): """Push data items in a cloud-agnostic way.