Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed Mar 19, 2024
1 parent 931caf6 commit a410a0c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions datalad/core/distributed/clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@
postclonecfg_ria,
)

from datalad.core.local.create import _procedures_exists

__docformat__ = 'restructuredtext'

lgr = logging.getLogger('datalad.core.distributed.clone')
Expand Down
21 changes: 0 additions & 21 deletions datalad/core/local/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,24 +549,3 @@ def _setup_annex_repo(path, initopts=None, fake_dates=False,
'type': 'file',
'state': 'untracked'}
return tbrepo, add_to_git

def _procedures_exists(ds, cfg_proc):
# Check if specified cfg_proc(s) can be discovered, storing
# the results so they can be used when the time comes to run
# the procedure. If a procedure cannot be found, raise an
# error to prevent creating the dataset.
cfg_proc_specs = []
discovered_procs = ds.run_procedure(
discover=True,
result_renderer='disabled',
return_type='list',
)
for cfg_proc_ in cfg_proc:
for discovered_proc in discovered_procs:
if discovered_proc['procedure_name'] == 'cfg_' + cfg_proc_:
cfg_proc_specs.append(discovered_proc)
break
else:
raise ValueError("Cannot find procedure with name "
"'%s'" % cfg_proc_)
return cfg_proc_specs

0 comments on commit a410a0c

Please sign in to comment.