diff --git a/NEWS.md b/NEWS.md index c040e61..3b59d16 100644 --- a/NEWS.md +++ b/NEWS.md @@ -23,6 +23,7 @@ - `preamble` is now exported - `render` now supports a custom `preamble` +- Removed unnecessary `TypstCommand` constructor ## Bug Fixes diff --git a/src/Commands.jl b/src/Commands.jl index ca96564..6dc489a 100644 --- a/src/Commands.jl +++ b/src/Commands.jl @@ -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. @@ -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)