Skip to content

Commit

Permalink
Remove unused aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing committed Jan 6, 2024
1 parent fe7efc9 commit 1cf0f3c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lib/orb/dsl.ex
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,6 @@ defmodule Orb.DSL do
"""
defmacro loop({:<-, _, [{identifier, _, nil} = var, source]}, do: block)
when is_atom(identifier) do
alias Orb.I32

quote do
with do
var!(unquote(var)) = Orb.VariableReference.local(unquote(identifier), Orb.I32)
Expand Down
1 change: 0 additions & 1 deletion lib/orb/loop.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ defmodule Orb.Loop do
defstruct identifier: nil, result: nil, body: nil

defimpl Orb.ToWat do
alias Orb.ToWat.Instructions
import Orb.ToWat.Helpers

def to_wat(
Expand Down
5 changes: 3 additions & 2 deletions lib/orb/s32.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ defmodule Orb.S32 do
"""

import Kernel, except: [/: 2, <: 2, >: 2, <=: 2, >=: 2]
alias Orb.{Ops, F32}
alias Orb.Ops

def left / right do
# Orb.I32.div_s(left, right)
case Ops.extract_common_type(left, right) do
Integer ->
Orb.I32.div_s(left, right)
# Kernel.div(left, right)

# Kernel.div(left, right)

:i64 ->
Orb.I64.div_s(left, right)
Expand Down

0 comments on commit 1cf0f3c

Please sign in to comment.