Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Nov 26, 2024
1 parent 5e5e8c7 commit bfb56dc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/orb/dsl/dsl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ defmodule Orb.DSL do
end
end

defguardp is_local(name, locals)
# and
when is_atom(name) and is_map_key(locals, name)
defguardp is_local(name, locals) when is_atom(name) and is_map_key(locals, name)

def do_match(left, right, locals)

Expand Down Expand Up @@ -252,9 +250,7 @@ defmodule Orb.DSL do
)
end

def do_match(left, right, _locals), do: nil

# is_struct(:erlang.map_get(name, locals), Orb.VariableReference)
def do_match(_left, _right, _locals), do: nil

def do_snippet(locals, block_items) do
Macro.prewalk(block_items, fn
Expand Down

0 comments on commit bfb56dc

Please sign in to comment.