From b8a38bef2eaacea0dd17897dc99f1ef09b46a7e3 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 28 Nov 2016 14:23:17 +0100 Subject: 2016-11-28 13:36:00 --- tex/context/base/mkiv/mlib-run.lua | 55 -------------------------------------- 1 file changed, 55 deletions(-) (limited to 'tex/context/base/mkiv/mlib-run.lua') diff --git a/tex/context/base/mkiv/mlib-run.lua b/tex/context/base/mkiv/mlib-run.lua index 10adb7709..0ef80892a 100644 --- a/tex/context/base/mkiv/mlib-run.lua +++ b/tex/context/base/mkiv/mlib-run.lua @@ -466,67 +466,12 @@ function metapost.process(mpx, data, trialrun, flusher, multipass, isextrapass, -- table.insert(data,2,"") for i=1,#data do process(data[i],i) --- local d = data[i] --- -- d = string.gsub(d,"\r","") --- if d then --- if trace_graphics then --- tra.inp:write(formatters["\n%% begin snippet %s\n"](i)) --- tra.inp:write(d) --- tra.inp:write(formatters["\n%% end snippet %s\n"](i)) --- end --- starttiming(metapost.exectime) --- result = mpx:execute(d) -- some day we wil use a coroutine with textexts --- stoptiming(metapost.exectime) --- if trace_graphics and result then --- local str = result.log or result.error --- if str and str ~= "" then --- tra.log:write(str) --- end --- end --- if not metapost.reporterror(result) then --- if metapost.showlog then --- local str = result.term ~= "" and result.term or "no terminal output" --- if not emptystring(str) then --- metapost.lastlog = metapost.lastlog .. "\n" .. str --- report_metapost("log: %s",str) --- end --- end --- if result.fig then --- converted = metapost.convert(result, trialrun, flusher, multipass, askedfig) --- end --- end --- else --- report_metapost("error: invalid graphic component %s",i) --- end end else if trace_tracingall then data = "tracingall;" .. data end process(data) --- starttiming(metapost.exectime) --- result = mpx:execute(data) --- stoptiming(metapost.exectime) --- if trace_graphics and result then --- local str = result.log or result.error --- if str and str ~= "" then --- tra.log:write(str) --- end --- end --- -- todo: error message --- if not result then --- report_metapost("error: no result object returned") --- elseif result.status > 0 then --- report_metapost("error: %s",(result.term or "no-term") .. "\n" .. (result.error or "no-error")) --- else --- if metapost.showlog then --- metapost.lastlog = metapost.lastlog .. "\n" .. result.term --- report_metapost("info: %s",result.term or "no-term") --- end --- if result.fig then --- converted = metapost.convert(result, trialrun, flusher, multipass, askedfig) --- end --- end end if trace_graphics then local banner = "\n% end graphic\n\n" -- cgit v1.2.3