Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Jan 16, 2025
1 parent fe09867 commit 71bd256
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
4 changes: 0 additions & 4 deletions src/command/render/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ const kMediabagDir = "mediabag-dir";

const kResultsFile = "results-file";

const kTimingFile = "timings-file";

const kHasBootstrap = "has-bootstrap";

const kActiveFilters = "active-filters";
Expand All @@ -132,7 +130,6 @@ export async function filterParamsJson(
filterParams: Record<string, unknown>,
resultsFile: string,
dependenciesFile: string,
timingFile: string,
) {
// extract include params (possibly mutating it's arguments)
const includes = options.format.render[kMergeIncludes] !== false
Expand Down Expand Up @@ -185,7 +182,6 @@ export async function filterParamsJson(
...customFormatParams,
...typstFilterParams,
[kResultsFile]: pandocMetadataPath(resultsFile),
[kTimingFile]: pandocMetadataPath(timingFile),
[kQuartoFilters]: filterSpec,
[kActiveFilters]: {
normalization: metadataNormalizationFilterActive(options),
Expand Down
1 change: 0 additions & 1 deletion src/command/render/pandoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,6 @@ export async function runPandoc(
formatFilterParams,
filterResultsFile,
dependenciesFile,
timingResultsFile,
);

// remove selected args and defaults if we are handling some things on behalf of pandoc
Expand Down
18 changes: 0 additions & 18 deletions src/resources/filters/quarto-pre/results.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ local function resultsFile()
return pandoc.utils.stringify(param("results-file"))
end

local function timingsFile()
return pandoc.utils.stringify(param("timings-file"))
end


-- write results
function write_results()
return {
Expand All @@ -23,19 +18,6 @@ function write_results()
else
warn('Error writing LUA results file')
end

-- FIXME: we don't use this anymore, remove it
if os.getenv("QUARTO_PROFILER_OUTPUT") ~= nil then

local jsonTimings = quarto.json.encode(timing_events)
local tfile = io.open(timingsFile(), "w")
if tfile then
tfile:write(jsonTimings)
tfile:close()
else
warn('Error writing profiler timings JSON')
end
end
end
}
end
Expand Down

0 comments on commit 71bd256

Please sign in to comment.