From 39046ce029d04a5685380f13b347cd6edab1671d Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Fri, 10 Feb 2012 23:36:06 -0800 Subject: [PATCH] Remove unused methods from Sitemap::Store. If these end up being needed again it'd be better to just filter the #pages list. --- .../lib/middleman-core/sitemap/store.rb | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/middleman-core/lib/middleman-core/sitemap/store.rb b/middleman-core/lib/middleman-core/sitemap/store.rb index f307b82d..f1c19575 100644 --- a/middleman-core/lib/middleman-core/sitemap/store.rb +++ b/middleman-core/lib/middleman-core/sitemap/store.rb @@ -107,42 +107,6 @@ module Middleman::Sitemap false end - # Get a list of ignored paths - # @return [Array] - def ignored_paths - pages.select(&:ignored?).map(&:path) - end - - # Whether the given path is generic - # @param [String] path - # @return [Boolean] - def generic?(path) - generic_paths.include?(normalize_path(path)) - end - - # Get a list of generic paths - # @return [Array] - def generic_paths - app.cache.fetch :generic_paths do - pages.select(&:generic?).map(&:path) - end - end - - # Whether the given path is proxied - # @param [String] path - # @return [Boolean] - def proxied?(path) - proxied_paths.include?(normalize_path(path)) - end - - # Get a list of proxied paths - # @return [Array] - def proxied_paths - app.cache.fetch :proxied_paths do - pages.select(&:proxy?).map(&:path) - end - end - # Remove a file from the store # @param [String] file # @return [void]