Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
zzak committed Mar 5, 2023
1 parent 3000a97 commit ced9241
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/sdoc/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ class RDoc::Generator::SDoc
include SDoc::Templatable
include SDoc::Helpers

GENERATOR_DIRS = [File.join('sdoc', 'generator')]

TREE_FILE = File.join 'panel', 'tree.js'
SEARCH_INDEX_FILE = File.join 'js', 'search_index.js'

FILE_DIR = 'files'
CLASS_DIR = 'classes'
Expand Down Expand Up @@ -191,17 +188,6 @@ def generate_class_tree_level(classes, visited = {})
tree
end

### Determines index path based on @options.main_page (or lack thereof)
def index_path
# Transform class name to file path
if @options.main_page&.include?("::")
slashed = @options.main_page.sub(/^::/, "").gsub("::", "/")
"%s/%s.html" % [ class_dir, slashed ]
else
index.path
end
end

### Determines index page based on @options.main_page (or lack thereof)
def index
# Break early to avoid a big if block when no main page is specified
Expand Down

0 comments on commit ced9241

Please sign in to comment.