posts: remove unused exception classes.

This commit is contained in:
evazion
2021-10-11 18:58:15 -05:00
parent 7976323f7a
commit f155023b77
3 changed files with 0 additions and 7 deletions

View File

@@ -947,8 +947,6 @@ class PostQueryBuilder
set_cached_count(count) if count.present?
count
rescue Post::SearchError
nil
end
def set_cached_count(count)

View File

@@ -1,10 +1,6 @@
class Post < ApplicationRecord
class ApprovalError < StandardError; end
class DisapprovalError < StandardError; end
class RevertError < StandardError; end
class SearchError < StandardError; end
class DeletionError < StandardError; end
class TimeoutError < StandardError; end
# Tags to copy when copying notes.
NOTE_COPY_TAGS = %w[translated partially_translated check_translation translation_request reverse_translation

View File

@@ -1,5 +1,4 @@
class User < ApplicationRecord
class Error < StandardError; end
class PrivilegeError < StandardError; end
module Levels