Skip to content

Commit 9feae6c

Browse files
committed
blocks member is not used anymore when displaying structs
1 parent ad3b4d6 commit 9feae6c

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

site/js/docurium.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -362,23 +362,8 @@ $(function() {
362362
var needs = _.map(data.used.needs, toPair, docurium)
363363
var fileLink = {name: data.file, url: docurium.github_file(data.file, data.line, data.lineto)}
364364

365-
// so it doesn't look crap, we build up a block with fields
366-
// without a comment
367-
var had_comment = false
368-
var blocks = []
369-
var tmp = []
370-
_.each(data.fields, function(f) {
371-
if (had_comment) {
372-
blocks.push(tmp)
373-
tmp = []
374-
}
375-
376-
tmp.push(f)
377-
had_comment = f.comments
378-
})
379-
blocks.push(tmp)
380365

381-
this.set('data', {tname: tname, data: data, blocks: blocks, returns: returns, needs: needs, fileLink: fileLink})
366+
this.set('data', {tname: tname, data: data, returns: returns, needs: needs, fileLink: fileLink})
382367
}
383368
})
384369

0 commit comments

Comments
 (0)