Skip to content

Commit 71bd256

Browse files
committed
remove unused code
1 parent fe09867 commit 71bd256

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

src/command/render/filters.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ const kMediabagDir = "mediabag-dir";
104104

105105
const kResultsFile = "results-file";
106106

107-
const kTimingFile = "timings-file";
108-
109107
const kHasBootstrap = "has-bootstrap";
110108

111109
const kActiveFilters = "active-filters";
@@ -132,7 +130,6 @@ export async function filterParamsJson(
132130
filterParams: Record<string, unknown>,
133131
resultsFile: string,
134132
dependenciesFile: string,
135-
timingFile: string,
136133
) {
137134
// extract include params (possibly mutating it's arguments)
138135
const includes = options.format.render[kMergeIncludes] !== false
@@ -185,7 +182,6 @@ export async function filterParamsJson(
185182
...customFormatParams,
186183
...typstFilterParams,
187184
[kResultsFile]: pandocMetadataPath(resultsFile),
188-
[kTimingFile]: pandocMetadataPath(timingFile),
189185
[kQuartoFilters]: filterSpec,
190186
[kActiveFilters]: {
191187
normalization: metadataNormalizationFilterActive(options),

src/command/render/pandoc.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,6 @@ export async function runPandoc(
879879
formatFilterParams,
880880
filterResultsFile,
881881
dependenciesFile,
882-
timingResultsFile,
883882
);
884883

885884
// remove selected args and defaults if we are handling some things on behalf of pandoc

src/resources/filters/quarto-pre/results.lua

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ local function resultsFile()
66
return pandoc.utils.stringify(param("results-file"))
77
end
88

9-
local function timingsFile()
10-
return pandoc.utils.stringify(param("timings-file"))
11-
end
12-
13-
149
-- write results
1510
function write_results()
1611
return {
@@ -23,19 +18,6 @@ function write_results()
2318
else
2419
warn('Error writing LUA results file')
2520
end
26-
27-
-- FIXME: we don't use this anymore, remove it
28-
if os.getenv("QUARTO_PROFILER_OUTPUT") ~= nil then
29-
30-
local jsonTimings = quarto.json.encode(timing_events)
31-
local tfile = io.open(timingsFile(), "w")
32-
if tfile then
33-
tfile:write(jsonTimings)
34-
tfile:close()
35-
else
36-
warn('Error writing profiler timings JSON')
37-
end
38-
end
3921
end
4022
}
4123
end

0 commit comments

Comments
 (0)