Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jan 8, 2025
1 parent 19da823 commit 3979bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
17 changes: 0 additions & 17 deletions lib/ash/actions/read/read.ex
Original file line number Diff line number Diff line change
Expand Up @@ -194,23 +194,6 @@ defmodule Ash.Actions.Read do
page_opts(action, query.page, relationship?)
end

query =
if page_opts do
query
|> Ash.Query.set_context(%{
initial_limit: query.limit,
initial_offset: query.offset,
page_opts:
if !opts[:inital_data] do
page_opts
end,
initial_query: query,
query_opts: opts
})
else
query
end

opts = Keyword.delete(opts, :page)

query = Ash.Query.page(query, page_opts)
Expand Down
5 changes: 3 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule Ash.MixProject do
package: package(),
deps: deps(),
dialyzer: [plt_add_apps: [:mix, :mnesia, :plug, :ex_unit, :stream_data]],
docs: docs(),
docs: &docs/0,
aliases: aliases(),
description: @description,
source_url: "https://github.com/ash-project/ash",
Expand Down Expand Up @@ -376,7 +376,8 @@ defmodule Ash.MixProject do

# Dev/Test dependencies
{:eflame, "~> 1.0", only: [:dev, :test]},
{:ex_doc, "~> 0.32", only: [:dev, :test], runtime: false},
# {:ex_doc, "~> 0.32", only: [:dev, :test], runtime: false},
{:ex_doc, path: "../ex_doc", only: [:dev, :test], runtime: false},
{:ex_check, "~> 0.12", only: [:dev, :test]},
{:credo, ">= 0.0.0", only: [:dev, :test], runtime: false},
{:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false},
Expand Down

0 comments on commit 3979bf6

Please sign in to comment.