Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/docurium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ def show_warnings(data)

# check for changed signatures
sigchanges = []
@sigs.each do |fun, data|
if data[:changes]['HEAD']
@sigs.each do |fun, sig_data|
if sig_data[:changes]['HEAD']
sigchanges << fun
end
end
Expand Down Expand Up @@ -383,7 +383,6 @@ def group_functions!(data)
func[group] << key
func[group].sort!
end
misc = []
func.to_a.sort
end

Expand All @@ -395,7 +394,7 @@ def find_type_usage!(data)
h.merge!(data[:callbacks])
h.each do |func, fdata|
data[:types].each_with_index do |tdata, i|
type, typeData = tdata
type = tdata[0]
data[:types][i][1][:used] ||= {:returns => [], :needs => []}
if fdata[:return][:type].index(/#{type}[ ;\)\*]?/)
data[:types][i][1][:used][:returns] << func
Expand Down
4 changes: 1 addition & 3 deletions lib/docurium/docparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ def parse_file(orig_filename, files)

FileUtils.remove_entry(tmpdir)

cursor = tu.cursor

recs = []

cursor.visit_children do |cursor, parent|
tu.cursor.visit_children do |cursor, parent|
#puts "visiting #{cursor.kind} - #{cursor.spelling}"
location = cursor.location
next :continue if location.file == nil
Expand Down
3 changes: 0 additions & 3 deletions lib/docurium/layout.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# adding some stuff I need
class Rocco::Layout
attr_accessor :version
def version
@version
end
end
9 changes: 0 additions & 9 deletions test/docurium_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@ def setup

@repo = Rugged::Repository.init_at(@dir, :bare)

config = <<END
{
"name": "libgit2",
"github": "libgit2/libgit2",
"prefix": "git_",
"branch": "gh-pages"
}
END

# Create an index as we would have read from the user's repository
index = Rugged::Index.new
headers = File.dirname(__FILE__) + '/fixtures/git2/'
Expand Down