From 35f209a98a09a4afacce1a5feff0421e5b4428e0 Mon Sep 17 00:00:00 2001 From: Joe Antognini Date: Mon, 23 Jul 2018 23:33:05 -0700 Subject: [PATCH] Remove unnecessary function from earlier commit. --- pubs/commands/add_cmd.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pubs/commands/add_cmd.py b/pubs/commands/add_cmd.py index d4031f6..74522b0 100644 --- a/pubs/commands/add_cmd.py +++ b/pubs/commands/add_cmd.py @@ -68,19 +68,6 @@ def bibentry_from_editor(conf, ui, rp): return bibentry -def api_call(fn, arg): - """Calls the appropriate API command. - - :param fn: The API function to call. - :param arg: The argument to give the API call. - """ - bibentry_raw = fn(arg) - bibentry = rp.databroker.verify(bibentry_raw) - return bibentry - if bibentry is None: - ui.error('invalid doi {} or unable to retrieve bibfile from it.'.format(args.doi)) - - def command(conf, args): """ :param bibfile: bibtex file (in .bib, .bibml or .yaml format.