Skip to content

Commit 0a1b3c2

Browse files
remove parameter call finding
1 parent deca132 commit 0a1b3c2

File tree

4 files changed

+0
-27
lines changed

4 files changed

+0
-27
lines changed

src/ModelingToolkit.jl

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module ModelingToolkit
33
export Operation, Expression
44
export calculate_jacobian, generate_jacobian, generate_function
55
export independent_variables, dependent_variables, parameters
6-
export find_parameter_calls
76
export @register
87

98

src/equations.jl

-11
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,3 @@ Base.:(==)(a::Equation, b::Equation) = isequal((a.lhs, a.rhs), (b.lhs, b.rhs))
1010
Base.:~(lhs::Expression, rhs::Expression) = Equation(lhs, rhs)
1111
Base.:~(lhs::Expression, rhs::Number ) = Equation(lhs, rhs)
1212
Base.:~(lhs::Number , rhs::Expression) = Equation(lhs, rhs)
13-
14-
function find_parameter_calls(O::Operation,p_calls=Variable[])
15-
if O.op isa Variable && O.op.known && !isempty(O.args)
16-
push!(p_calls,O.op)
17-
find_parameter_calls.(O.args,(p_calls,))
18-
else
19-
find_parameter_calls.(O.args,(p_calls,))
20-
end
21-
p_calls
22-
end
23-
find_parameter_calls(O,p_calls) = nothing

test/find_parameter_calls.jl

-14
This file was deleted.

test/runtests.jl

-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ using ModelingToolkit, Test
33
@testset "Parsing Test" begin include("variable_parsing.jl") end
44
@testset "Differentiation Test" begin include("derivatives.jl") end
55
@testset "Simplify Test" begin include("simplify.jl") end
6-
@testset "Parameter Call Finding Test" begin include("find_parameter_calls.jl") end
76
@testset "System Construction Test" begin include("system_construction.jl") end

0 commit comments

Comments
 (0)