Skip to content

Commit

Permalink
Remove unnecessary TypstCommand constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobjpeters committed Aug 2, 2024
1 parent 7f9d622 commit c3844de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

- `preamble` is now exported
- `render` now supports a custom `preamble`
- Removed unnecessary `TypstCommand` constructor

## Bug Fixes

Expand Down
4 changes: 0 additions & 4 deletions src/Commands.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ format(::MIME"image/svg+xml") = "svg"
"""
TypstCommand(::Vector{String})
TypstCommand(::TypstCommand; kwargs...)
TypstCommand(::TypstCommand, ignorestatus, flags, env, dir, cpus = nothing)
The Typst compiler and its parameters.
Expand Down Expand Up @@ -98,9 +97,6 @@ mutable struct TypstCommand
new(Cmd(tc.compiler; kwargs...), tc.parameters, ignorestatus)
end

TypstCommand(tc::TypstCommand, ignorestatus, flags, env, dir, cpus = nothing) =
TypstCommand(tc; ignorestatus, flags, env, dir, cpus)

"""
TypstError <: Exception
TypstError(::TypstCommand)
Expand Down

0 comments on commit c3844de

Please sign in to comment.