Skip to content

Commit 96a9c38

Browse files
committed
Remove unused svn info
1 parent d234f6c commit 96a9c38

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,
@@ -619,28 +617,6 @@ def time_delta_string seconds
619617
\$$
620618
/x
621619

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

0 commit comments

Comments
 (0)