Commit c4dbb30a authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Remove unreachable code from cli.SubmitOpCode

Reviewed-by: iustinp
parent 4c8dbc12
......@@ -377,6 +377,7 @@ def SubmitOpCode(op, proc=None, feedback_fn=None):
interaction functions.
"""
# TODO: Fix feedback_fn situation.
cl = luxi.Client()
job = opcodes.Job(op_list=[op])
jid = SubmitJob(job)
......@@ -407,12 +408,6 @@ def SubmitOpCode(op, proc=None, feedback_fn=None):
raise errors.OpExecError(op_result[0])
return op_result[0]
if feedback_fn is None:
feedback_fn = logger.ToStdout
if proc is None:
proc = mcpu.Processor(feedback=feedback_fn)
return proc.ExecOpCode(op)
def SubmitJob(job, cl=None):
if cl is None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment