Skip to content

Commit

Permalink
Remove .mapping field from Page (#2068)
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi authored Mar 14, 2023
1 parent e5441ba commit 96084dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/Expanders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,6 @@ function Selectors.runner(::Type{ExampleBlocks}, node, page, doc)
$(x.code)
```
""", exception = (c.value, bt))
page.mapping[x] = x
return
end
end
Expand Down
3 changes: 1 addition & 2 deletions src/documents.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ struct Page
element does not need expanding or some other object, such as a `DocsNode` in the case
of `@docs` code blocks.
"""
mapping :: IdDict{Any,Any}
globals :: Globals
mdast :: MarkdownAST.Node{Nothing}
end
Expand All @@ -56,7 +55,7 @@ function Page(source::AbstractString, build::AbstractString, workdir::AbstractSt
"""
rethrow(err)
end
Page(source, build, workdir, mdpage.content, IdDict{Any,Any}(), Globals(), mdast)
Page(source, build, workdir, mdpage.content, Globals(), mdast)
end

# FIXME -- special overload for parseblock
Expand Down
2 changes: 1 addition & 1 deletion test/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ end
end

import Documenter: Document, Page, Globals
let page = Page("source", "build", :build, [], IdDict{Any,Any}(), Globals(), MarkdownAST.@ast MarkdownAST.Document()), doc = Document()
let page = Page("source", "build", :build, [], Globals(), MarkdownAST.@ast MarkdownAST.Document()), doc = Document()
code = """
x += 3
γγγ_γγγ
Expand Down

0 comments on commit 96084dd

Please sign in to comment.