post sets: remove unused methods.
This commit is contained in:
@@ -20,10 +20,6 @@ module PostSets
|
|||||||
tag_array.slice(0, 25).join(" ").tr("_", " ")
|
tag_array.slice(0, 25).join(" ").tr("_", " ")
|
||||||
end
|
end
|
||||||
|
|
||||||
def unordered_tag_array
|
|
||||||
tag_array.reject {|tag| tag =~ /\Aorder:/i }
|
|
||||||
end
|
|
||||||
|
|
||||||
def has_blank_wiki?
|
def has_blank_wiki?
|
||||||
tag.present? && !wiki_page.present?
|
tag.present? && !wiki_page.present?
|
||||||
end
|
end
|
||||||
@@ -69,10 +65,6 @@ module PostSets
|
|||||||
::FavoriteGroup.find_by_name(favgroup_name)
|
::FavoriteGroup.find_by_name(favgroup_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def has_deleted?
|
|
||||||
tag_string !~ /status/ && ::Post.tag_match("#{tag_string} status:deleted").where("true /* PostSets::Post#has_deleted */").exists?
|
|
||||||
end
|
|
||||||
|
|
||||||
def has_explicit?
|
def has_explicit?
|
||||||
posts.any? {|x| x.rating == "e"}
|
posts.any? {|x| x.rating == "e"}
|
||||||
end
|
end
|
||||||
@@ -101,10 +93,6 @@ module PostSets
|
|||||||
random || Tag.has_metatag?(tag_array, :order) == "random"
|
random || Tag.has_metatag?(tag_array, :order) == "random"
|
||||||
end
|
end
|
||||||
|
|
||||||
def use_sequential_paginator?
|
|
||||||
unknown_post_count? && !CurrentUser.is_gold?
|
|
||||||
end
|
|
||||||
|
|
||||||
def get_post_count
|
def get_post_count
|
||||||
if %w(json atom xml).include?(format.downcase)
|
if %w(json atom xml).include?(format.downcase)
|
||||||
# no need to get counts for formats that don't use a paginator
|
# no need to get counts for formats that don't use a paginator
|
||||||
|
|||||||
Reference in New Issue
Block a user