mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
Remove unused changeset functions
This commit is contained in:
parent
0891fe31af
commit
f91d9f2143
6 changed files with 0 additions and 48 deletions
|
@ -1,6 +1,5 @@
|
|||
defmodule Philomena.Notifications.ChannelLiveNotification do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
alias Philomena.Users.User
|
||||
alias Philomena.Channels.Channel
|
||||
|
@ -15,11 +14,4 @@ defmodule Philomena.Notifications.ChannelLiveNotification do
|
|||
|
||||
timestamps(inserted_at: :created_at, type: :utc_datetime)
|
||||
end
|
||||
|
||||
@doc false
|
||||
def changeset(channel_live_notification, attrs) do
|
||||
channel_live_notification
|
||||
|> cast(attrs, [])
|
||||
|> validate_required([])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
defmodule Philomena.Notifications.ForumPostNotification do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
alias Philomena.Users.User
|
||||
alias Philomena.Topics.Topic
|
||||
|
@ -17,11 +16,4 @@ defmodule Philomena.Notifications.ForumPostNotification do
|
|||
|
||||
timestamps(inserted_at: :created_at, type: :utc_datetime)
|
||||
end
|
||||
|
||||
@doc false
|
||||
def changeset(forum_post_notification, attrs) do
|
||||
forum_post_notification
|
||||
|> cast(attrs, [])
|
||||
|> validate_required([])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
defmodule Philomena.Notifications.ForumTopicNotification do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
alias Philomena.Users.User
|
||||
alias Philomena.Topics.Topic
|
||||
|
@ -15,11 +14,4 @@ defmodule Philomena.Notifications.ForumTopicNotification do
|
|||
|
||||
timestamps(inserted_at: :created_at, type: :utc_datetime)
|
||||
end
|
||||
|
||||
@doc false
|
||||
def changeset(forum_topic_notification, attrs) do
|
||||
forum_topic_notification
|
||||
|> cast(attrs, [])
|
||||
|> validate_required([])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
defmodule Philomena.Notifications.GalleryImageNotification do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
alias Philomena.Users.User
|
||||
alias Philomena.Galleries.Gallery
|
||||
|
@ -15,11 +14,4 @@ defmodule Philomena.Notifications.GalleryImageNotification do
|
|||
|
||||
timestamps(inserted_at: :created_at, type: :utc_datetime)
|
||||
end
|
||||
|
||||
@doc false
|
||||
def changeset(gallery_image_notification, attrs) do
|
||||
gallery_image_notification
|
||||
|> cast(attrs, [])
|
||||
|> validate_required([])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
defmodule Philomena.Notifications.ImageCommentNotification do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
alias Philomena.Users.User
|
||||
alias Philomena.Images.Image
|
||||
|
@ -17,11 +16,4 @@ defmodule Philomena.Notifications.ImageCommentNotification do
|
|||
|
||||
timestamps(inserted_at: :created_at, type: :utc_datetime)
|
||||
end
|
||||
|
||||
@doc false
|
||||
def changeset(image_comment_notification, attrs) do
|
||||
image_comment_notification
|
||||
|> cast(attrs, [])
|
||||
|> validate_required([])
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
defmodule Philomena.Notifications.ImageMergeNotification do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
alias Philomena.Users.User
|
||||
alias Philomena.Images.Image
|
||||
|
@ -16,11 +15,4 @@ defmodule Philomena.Notifications.ImageMergeNotification do
|
|||
|
||||
timestamps(inserted_at: :created_at, type: :utc_datetime)
|
||||
end
|
||||
|
||||
@doc false
|
||||
def changeset(image_merge_notification, attrs) do
|
||||
image_merge_notification
|
||||
|> cast(attrs, [])
|
||||
|> validate_required([])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue