Skip to content

Commit ca430a8

Browse files
Merge pull request #99 from ArnoStrouwen/master
delete dead code
2 parents 366d3dc + ed3f5a4 commit ca430a8

File tree

3 files changed

+13
-73
lines changed

3 files changed

+13
-73
lines changed

src/ParameterizedFunctions.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import LinearAlgebra
1616
import Base: getindex
1717

1818
include("ode_def_opts.jl")
19-
include("ode_findrep.jl")
2019
include("utils.jl")
2120
include("dict_build.jl")
2221
include("macros.jl")

src/ode_findrep.jl

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/utils.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
### Utility Functions
2+
function flip_mult!(ex)
3+
for (i, arg) in enumerate(ex.args)
4+
if isa(arg, Expr)
5+
if arg.args[1] == :(*) && length(arg.args) >= 3 &&
6+
(isa(arg.args[2], Number) ||
7+
(isa(arg.args[2], Expr) && arg.args[2].args[1] == :-))
8+
arg.args[3], arg.args[2] = arg.args[2], arg.args[3]
9+
else
10+
flip_mult!(arg)
11+
end
12+
end
13+
end
14+
end
215

316
function build_component_funcs(symex)
417
funcs = Vector{Expr}(undef, 0) # Get all of the functions for symbolic computation

0 commit comments

Comments
 (0)