Skip to content

Commit 737c611

Browse files
committed
Remove unused svn info
1 parent 2311a81 commit 737c611

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

lib/rdoc/generator/darkfish.rb

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ def generate_class klass, template_file = nil
321321
rel_prefix = @outputdir.relative_path_from out_file.dirname
322322

323323
asset_rel_prefix = rel_prefix + @asset_rel_path
324-
svninfo = get_svninfo(target)
325324

326325
breadcrumb = generate_nesting_namespaces_breadcrumb(target, rel_prefix)
327326

@@ -338,7 +337,6 @@ def generate_class klass, template_file = nil
338337
asset_rel_prefix: asset_rel_prefix,
339338
rel_prefix: rel_prefix,
340339
target: target,
341-
svninfo: svninfo,
342340
klass: klass,
343341
breadcrumb: breadcrumb,
344342
klass_class_methods: klass_class_methods,
@@ -617,28 +615,6 @@ def time_delta_string seconds
617615
\$$
618616
/x
619617

620-
##
621-
# Try to extract Subversion information out of the first constant whose
622-
# value looks like a subversion Id tag. If no matching constant is found,
623-
# and empty hash is returned.
624-
625-
def get_svninfo klass
626-
constants = klass.constants or return {}
627-
628-
constants.find { |c| c.value =~ SVNID_PATTERN } or return {}
629-
630-
filename, rev, date, time, committer = $~.captures
631-
commitdate = Time.parse "#{date} #{time}"
632-
633-
return {
634-
:filename => filename,
635-
:rev => Integer(rev),
636-
:commitdate => commitdate,
637-
:commitdelta => time_delta_string(Time.now - commitdate),
638-
:committer => committer,
639-
}
640-
end
641-
642618
##
643619
# Creates a template from its components and the +body_file+.
644620
#

0 commit comments

Comments
 (0)