Skip to content

Commit c42fef0

Browse files
Remove deprecated render and to_liquid defs in archive.rb
1 parent 294d7c8 commit c42fef0

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

lib/jekyll-archives/archive.rb

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,6 @@ def permalink
9191
data && data.is_a?(Hash) && data['permalink']
9292
end
9393

94-
# Add any necessary layouts to this post
95-
#
96-
# layouts - The Hash of {"name" => "layout"}.
97-
# site_payload - The site payload Hash.
98-
#
99-
# Returns nothing.
100-
def render(layouts, site_payload)
101-
payload = Utils.deep_merge_hashes({
102-
"page" => to_liquid
103-
}, site_payload)
104-
105-
do_layout(payload, layouts)
106-
end
107-
10894
# Add dependencies for incremental mode
10995
def add_dependencies
11096
if defined? site.regenerator
@@ -115,17 +101,6 @@ def add_dependencies
115101
end
116102
end
117103
end
118-
119-
# Convert this Convertible's data to a Hash suitable for use by Liquid.
120-
#
121-
# Returns the Hash representation of this Convertible.
122-
def to_liquid(attrs = nil)
123-
further_data = Hash[(attrs || self.class::ATTRIBUTES_FOR_LIQUID).map { |attribute|
124-
[attribute, send(attribute)]
125-
}]
126-
127-
Utils.deep_merge_hashes(data, further_data)
128-
end
129104

130105
# Produce a title object suitable for Liquid based on type of archive.
131106
#

0 commit comments

Comments
 (0)