From f91d9f2143fc3ff3e28ff52519c11201df08974c Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 30 Jul 2024 12:35:47 -0400 Subject: [PATCH] Remove unused changeset functions --- lib/philomena/notifications/channel_live_notification.ex | 8 -------- lib/philomena/notifications/forum_post_notification.ex | 8 -------- lib/philomena/notifications/forum_topic_notification.ex | 8 -------- lib/philomena/notifications/gallery_image_notification.ex | 8 -------- lib/philomena/notifications/image_comment_notification.ex | 8 -------- lib/philomena/notifications/image_merge_notification.ex | 8 -------- 6 files changed, 48 deletions(-) diff --git a/lib/philomena/notifications/channel_live_notification.ex b/lib/philomena/notifications/channel_live_notification.ex index b60fb8e6..109c784f 100644 --- a/lib/philomena/notifications/channel_live_notification.ex +++ b/lib/philomena/notifications/channel_live_notification.ex @@ -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 diff --git a/lib/philomena/notifications/forum_post_notification.ex b/lib/philomena/notifications/forum_post_notification.ex index 0d2ad20a..f0313628 100644 --- a/lib/philomena/notifications/forum_post_notification.ex +++ b/lib/philomena/notifications/forum_post_notification.ex @@ -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 diff --git a/lib/philomena/notifications/forum_topic_notification.ex b/lib/philomena/notifications/forum_topic_notification.ex index 862f42ae..2ff39d38 100644 --- a/lib/philomena/notifications/forum_topic_notification.ex +++ b/lib/philomena/notifications/forum_topic_notification.ex @@ -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 diff --git a/lib/philomena/notifications/gallery_image_notification.ex b/lib/philomena/notifications/gallery_image_notification.ex index 1d00d7c9..816de3ed 100644 --- a/lib/philomena/notifications/gallery_image_notification.ex +++ b/lib/philomena/notifications/gallery_image_notification.ex @@ -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 diff --git a/lib/philomena/notifications/image_comment_notification.ex b/lib/philomena/notifications/image_comment_notification.ex index 08a2ddff..28487d9d 100644 --- a/lib/philomena/notifications/image_comment_notification.ex +++ b/lib/philomena/notifications/image_comment_notification.ex @@ -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 diff --git a/lib/philomena/notifications/image_merge_notification.ex b/lib/philomena/notifications/image_merge_notification.ex index 5546707e..e767ffbd 100644 --- a/lib/philomena/notifications/image_merge_notification.ex +++ b/lib/philomena/notifications/image_merge_notification.ex @@ -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