Skip to content

Commit

Permalink
Merge pull request #300 from JuliaReach/schillic/coverage
Browse files Browse the repository at this point in the history
Remove unreachable code
  • Loading branch information
schillic authored Jun 27, 2024
2 parents b1a6ead + f709f90 commit d4cbf1b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@ function strip_dynamic_equation(expr)
return (nothing, nothing, nothing)
end

function _parse_system(expr::Expr)
return _parse_system((expr,))
end

function _parse_system(exprs::NTuple{N,Expr}) where {N}
# define default dynamic equation, unknown abstract system type,
# and empty list of constraints
Expand Down Expand Up @@ -690,10 +686,7 @@ end
# tuple of symbols where the field name is either `:X`, `:U` or `:W` and
# the variable name is the value parsed as Set_
function extract_set_parameter(expr, state, input, noise) # input => to check set definitions
if @capture(expr, x_(0) Set_)
return Set, :x0

elseif @capture(expr, x_ Set_) # COV_EXCL_LINE
if @capture(expr, x_ Set_)
if x == state
return Set, :X
elseif x == input
Expand Down

0 comments on commit d4cbf1b

Please sign in to comment.