diff --git a/src/Pluto.jl b/src/Pluto.jl index 07ed7cd285..1579c69fe9 100644 --- a/src/Pluto.jl +++ b/src/Pluto.jl @@ -48,7 +48,6 @@ include("./evaluation/Tokens.jl") include("./evaluation/Throttled.jl") include("./runner/PlutoRunner.jl") include("./analysis/ExpressionExplorer.jl") -include("./analysis/FunctionDependencies.jl") include("./packages/PkgCompat.jl") include("./webserver/Status.jl") diff --git a/src/analysis/FunctionDependencies.jl b/src/analysis/FunctionDependencies.jl deleted file mode 100644 index 52db2df2b5..0000000000 --- a/src/analysis/FunctionDependencies.jl +++ /dev/null @@ -1,45 +0,0 @@ -module FunctionDependencies - -const dependency_table = Dict{Symbol,Symbol}( - :√ => :sqrt, - :adjoint => :conj, - :< => :isless, - :> => :<, - :isgreater => :isless, - :ismore => :>, - :≥ => :(>=), - :≤ => :(<=), - :min => :isless, - :max => :isless, - :cmp => :isless, - :isequal => :(==), - :(!=) => :(==), - :≠ => :(!=), - :(!==) => :(===), - :≢ => :(!==), - :≡ => :(===), - :⊻ => :xor, - :⊼ => :nand, - :⊽ => :nor, - :% => :rem, - :÷ => :div, - :mod1 => :mod, - :∈ => :in, -) - -maybe_add_dependent_funccall!(funccalls::Set{Symbol}, ::Nothing) = funccalls -function maybe_add_dependent_funccall!(funccalls::Set{Symbol}, call) - push!(funccalls, call) - maybe_add_dependent_funccall!(funccalls, get(dependency_table, call, nothing)) - funccalls -end - -function maybe_add_dependent_funccalls!(funccalls::Set{Symbol}) - calls_to_add = intersect(keys(dependency_table), funccalls) - for call in calls_to_add - maybe_add_dependent_funccall!(funccalls, dependency_table[call]) - end - funccalls -end - -end