Rewrite commentary on static event handling

This commit is contained in:
Steve Francia
2016-01-26 14:12:18 -05:00
parent b0b4b82165
commit d08e4c87a7
2 changed files with 22 additions and 72 deletions

View File

@@ -105,12 +105,6 @@ type Position struct {
}
type Pages []*Page
//
//func (ps Pages) Replace(page *Page) {
// if i := ps.FindPagePos(page); i >= 0 {
// ps[i] = page
// }
//}
func (ps Pages) FindPagePosByFilePath(inPath string) int {
for i, x := range ps {
@@ -132,16 +126,6 @@ func (ps Pages) FindPagePos(page *Page) int {
return -1
}
// FindPage Given a page, it will return the page in Pages
// will return nil if not found
//func (ps Pages) FindPage(page *Page) *Page {
// if i := ps.FindPagePos(page); i >= 0 {
// return ps[i]
// }
//
// return nil
//}
func (p *Page) Plain() string {
p.initPlain()
return p.plain