Skip to content

Commit

Permalink
removed unused code thanks to the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Jul 16, 2016
1 parent 05ddb6c commit b4246e2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions example/lib/company.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
defmodule Company do
use Ecto.Schema

import Ecto
import Ecto.Changeset
import Ecto.Query

schema "companies" do
field :name, :string
Expand Down
2 changes: 0 additions & 2 deletions example/lib/person.ex
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
defmodule Person do
use Ecto.Schema

import Ecto
import Ecto.Changeset
import Ecto.Query

schema "people" do
field :first_name, :string
Expand Down
2 changes: 0 additions & 2 deletions example/test/person_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ defmodule PersonTest do
select: count(person.id)
)

person_ref = result[:model] |> Map.drop([:__meta__, :__struct__, :inserted_at, :updated_at, :id])

version_count = Repo.all(
from version in PaperTrail.Version,
select: count(version.id)
Expand Down
4 changes: 0 additions & 4 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ Mix.Task.run "ecto.migrate", ~w(-r Repo)
defmodule Company do
use Ecto.Schema

import Ecto
import Ecto.Changeset
import Ecto.Query

schema "companies" do
field :name, :string
Expand Down Expand Up @@ -39,9 +37,7 @@ end
defmodule Person do
use Ecto.Schema

import Ecto
import Ecto.Changeset
import Ecto.Query

schema "people" do
field :first_name, :string
Expand Down

0 comments on commit b4246e2

Please sign in to comment.