Skip to content

Commit

Permalink
Remove unused function pipe
Browse files Browse the repository at this point in the history
Pandoc now exposes a pipe function in the `pandoc.utils` module, in case
this is needed again in the future.
  • Loading branch information
tarleb committed May 31, 2019
1 parent 20e4acc commit bc7859d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions jira.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,6 @@ local function escape(s, in_attribute)
return s
end

-- Run cmd on a temporary file containing inp and return result.
local function pipe(cmd, inp)
local tmp = os.tmpname()
local tmph = io.open(tmp, "w")
tmph:write(inp)
tmph:close()
local outh = io.popen(cmd .. " " .. tmp,"r")
local result = outh:read("*all")
outh:close()
os.remove(tmp)
return result
end

-- Blocksep is used to separate block elements.
function Blocksep()
return "\n\n"
Expand Down

0 comments on commit bc7859d

Please sign in to comment.