rm obsolete code

This commit is contained in:
Jeff Carr 2024-12-23 02:42:07 -06:00
parent e14fde1546
commit 7cc064dec0
1 changed files with 4 additions and 5 deletions

View File

@ -3,7 +3,6 @@ package repolist
import (
"go.wit.com/gui"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/log"
)
func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
@ -25,9 +24,9 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
for repos.Scan() {
repo := repos.Next()
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
log.Info("repo scan readonly directory:", repo.FullPath)
// log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)
// log.Info("repo scan writable directory:", repo.FullPath)
me.AddRepo(repo)
}
}
@ -51,9 +50,9 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList {
for repos.Scan() {
repo := repos.Next()
if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
log.Info("repo scan readonly directory:", repo.FullPath)
// log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)
// log.Info("repo scan writable directory:", repo.FullPath)
me.AddRepo(repo)
}
}