gogs / git

Package GoGits - Git is a pure Go implementation of Git manipulation.
Apache License 2.0
176 stars 32 forks source link

Unused Functions #29

Closed lemmi closed 1 year ago

lemmi commented 7 years ago

https://github.com/dominikh/go-tools/unused yields:

repo_history_handlers.go:7:6: func commitRootComparator is unused (U1000) repo_object.go:91:25: func (Repository).objectType is unused (U1000) tree.go:36:16: func (Tree).walk is unused (U1000) tree.go:41:16: func (*Tree)._walk is unused (U1000) tree_entry.go:63:2: field commited is unused (U1000)

Some of them look like they should be public, especially func (*Tree).walk. I always wondered what the TreeWalkCallback was for...

unknwon commented 7 years ago

Hmm... unused maybe caused by several code refactoring rounds.