remove smartwindow test code

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-15 21:51:04 -06:00
parent 050c59d8d2
commit bc06a0dba0
1 changed files with 0 additions and 25 deletions

View File

@ -4,10 +4,6 @@ package main
import ( import (
"io/ioutil" "io/ioutil"
"strings" "strings"
"go.wit.com/log"
"go.wit.com/apps/control-panel-dns/smartwindow"
) )
func (r *repo) getPath() string { func (r *repo) getPath() string {
@ -33,27 +29,6 @@ func splitLine(line string) (string, string, string, string) {
return path, master, devel, user return path, master, devel, user
} }
// This creates a window
func hellosmart() {
win := smartwindow.New()
win.SetParent(myGui)
win.InitWindow()
win.Title("hellosmart test")
win.Vertical()
win.SetDraw(smartDraw)
win.Make()
win.Box().NewButton("test smartwindow", func () {
log.Println("smart")
})
}
func smartDraw(sw *smartwindow.SmartWindow) {
sw.Box().NewButton("hello", func () {
log.Println("smart")
})
}
func myrepolist() []string { func myrepolist() []string {
content, _ := ioutil.ReadFile("/home/jcarr/.config/myrepolist") content, _ := ioutil.ReadFile("/home/jcarr/.config/myrepolist")
out := string(content) out := string(content)