Skip to content

Commit

Permalink
Remove unused helper
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 28, 2024
1 parent 9f3eab7 commit 765373c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/ecto/association.ex
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,6 @@ defmodule Ecto.Association do

alias Ecto.Query.Builder.OrderBy

@doc """
Helper to check if a queryable is compiled.
"""
def ensure_loaded(queryable) do
if not is_atom(queryable) do
:skip
else
case Code.ensure_loaded(queryable) do
{:module, _} -> :compiled
{:error, _} -> :not_found
end
end
end

@doc """
Builds the association struct.
Expand Down

0 comments on commit 765373c

Please sign in to comment.