Remove unused changeset functions

This commit is contained in:
Liam 2024-07-30 12:35:47 -04:00
parent 0891fe31af
commit f91d9f2143
6 changed files with 0 additions and 48 deletions

View file

@ -1,6 +1,5 @@
defmodule Philomena.Notifications.ChannelLiveNotification do defmodule Philomena.Notifications.ChannelLiveNotification do
use Ecto.Schema use Ecto.Schema
import Ecto.Changeset
alias Philomena.Users.User alias Philomena.Users.User
alias Philomena.Channels.Channel alias Philomena.Channels.Channel
@ -15,11 +14,4 @@ defmodule Philomena.Notifications.ChannelLiveNotification do
timestamps(inserted_at: :created_at, type: :utc_datetime) timestamps(inserted_at: :created_at, type: :utc_datetime)
end end
@doc false
def changeset(channel_live_notification, attrs) do
channel_live_notification
|> cast(attrs, [])
|> validate_required([])
end
end end

View file

@ -1,6 +1,5 @@
defmodule Philomena.Notifications.ForumPostNotification do defmodule Philomena.Notifications.ForumPostNotification do
use Ecto.Schema use Ecto.Schema
import Ecto.Changeset
alias Philomena.Users.User alias Philomena.Users.User
alias Philomena.Topics.Topic alias Philomena.Topics.Topic
@ -17,11 +16,4 @@ defmodule Philomena.Notifications.ForumPostNotification do
timestamps(inserted_at: :created_at, type: :utc_datetime) timestamps(inserted_at: :created_at, type: :utc_datetime)
end end
@doc false
def changeset(forum_post_notification, attrs) do
forum_post_notification
|> cast(attrs, [])
|> validate_required([])
end
end end

View file

@ -1,6 +1,5 @@
defmodule Philomena.Notifications.ForumTopicNotification do defmodule Philomena.Notifications.ForumTopicNotification do
use Ecto.Schema use Ecto.Schema
import Ecto.Changeset
alias Philomena.Users.User alias Philomena.Users.User
alias Philomena.Topics.Topic alias Philomena.Topics.Topic
@ -15,11 +14,4 @@ defmodule Philomena.Notifications.ForumTopicNotification do
timestamps(inserted_at: :created_at, type: :utc_datetime) timestamps(inserted_at: :created_at, type: :utc_datetime)
end end
@doc false
def changeset(forum_topic_notification, attrs) do
forum_topic_notification
|> cast(attrs, [])
|> validate_required([])
end
end end

View file

@ -1,6 +1,5 @@
defmodule Philomena.Notifications.GalleryImageNotification do defmodule Philomena.Notifications.GalleryImageNotification do
use Ecto.Schema use Ecto.Schema
import Ecto.Changeset
alias Philomena.Users.User alias Philomena.Users.User
alias Philomena.Galleries.Gallery alias Philomena.Galleries.Gallery
@ -15,11 +14,4 @@ defmodule Philomena.Notifications.GalleryImageNotification do
timestamps(inserted_at: :created_at, type: :utc_datetime) timestamps(inserted_at: :created_at, type: :utc_datetime)
end end
@doc false
def changeset(gallery_image_notification, attrs) do
gallery_image_notification
|> cast(attrs, [])
|> validate_required([])
end
end end

View file

@ -1,6 +1,5 @@
defmodule Philomena.Notifications.ImageCommentNotification do defmodule Philomena.Notifications.ImageCommentNotification do
use Ecto.Schema use Ecto.Schema
import Ecto.Changeset
alias Philomena.Users.User alias Philomena.Users.User
alias Philomena.Images.Image alias Philomena.Images.Image
@ -17,11 +16,4 @@ defmodule Philomena.Notifications.ImageCommentNotification do
timestamps(inserted_at: :created_at, type: :utc_datetime) timestamps(inserted_at: :created_at, type: :utc_datetime)
end end
@doc false
def changeset(image_comment_notification, attrs) do
image_comment_notification
|> cast(attrs, [])
|> validate_required([])
end
end end

View file

@ -1,6 +1,5 @@
defmodule Philomena.Notifications.ImageMergeNotification do defmodule Philomena.Notifications.ImageMergeNotification do
use Ecto.Schema use Ecto.Schema
import Ecto.Changeset
alias Philomena.Users.User alias Philomena.Users.User
alias Philomena.Images.Image alias Philomena.Images.Image
@ -16,11 +15,4 @@ defmodule Philomena.Notifications.ImageMergeNotification do
timestamps(inserted_at: :created_at, type: :utc_datetime) timestamps(inserted_at: :created_at, type: :utc_datetime)
end end
@doc false
def changeset(image_merge_notification, attrs) do
image_merge_notification
|> cast(attrs, [])
|> validate_required([])
end
end end