~emersion/gyosu

bee912fe08d9d074ddda7feb563bd0e95598fe67 — Simon Ser a month ago 96c85ff
Remove unused leadingCommentPrototype
1 files changed, 0 insertions(+), 18 deletions(-)

M main.go
M main.go => main.go +0 -18
@@ 238,24 238,6 @@ func tokenSepPrototype(tok cc.Token, last bool) prototype {
	return proto
}

func leadingCommentPrototype(tok cc.Token) prototype {
	sep := tok.Sep.String()
	if !strings.HasPrefix(sep, "\n") {
		// TODO: handle this type of comment as well:
		//   int foo; /* comment */
		return nil
	}
	sep = stripIndent(sep)
	sep = strings.TrimSpace(sep)
	if sep == "" {
		return nil
	}

	var proto prototype
	proto.Comment(sep).Raw("\n")
	return proto
}

func indentContinuationLines(in prototype) prototype {
	var out prototype
	for _, tok := range in {