From 50a56952417665d32147b55862bda0a6d6cee901 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 30 Jan 2025 10:25:59 -0600 Subject: rm lots more old code --- send.go | 38 +++++++------------------------------- 1 file changed, 7 insertions(+), 31 deletions(-) (limited to 'send.go') diff --git a/send.go b/send.go index 6067baf..35386f3 100644 --- a/send.go +++ b/send.go @@ -3,14 +3,12 @@ package main import ( - "os" - "path/filepath" "strings" - "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" ) +/* func submitPatches(pset *forgepb.Patchset) error { var url string url = me.urlbase + "/patchset" @@ -32,7 +30,9 @@ func submitPatches(pset *forgepb.Patchset) error { } return nil } +*/ +/* func listPatches() ([]string, error) { var url string url = me.urlbase + "/patchsetlist" @@ -42,20 +42,6 @@ func listPatches() ([]string, error) { return nil, err } - /* - var last string - test := strings.TrimSpace(string(body)) - for _, line := range strings.Split(test, "\n") { - log.Info("patchset:", line) - last = strings.TrimSpace(line) - } - parts := strings.Fields(last) - if len(parts) == 0 { - return fmt.Errorf("listPatches() there are no patchsets at this time") - } - getPatch(parts[0]) - return nil - */ test := strings.TrimSpace(string(body)) return strings.Split(test, "\n"), nil } @@ -78,6 +64,7 @@ func lastPatch() string { parts := strings.Fields(last) return parts[0] } +*/ func doRegister(newurl string) error { var url string @@ -96,6 +83,8 @@ func doRegister(newurl string) error { return nil } +/* + // gets the patch // todo: move to forgepb func getPatch(pbfile string) (*forgepb.Patchset, error) { @@ -140,20 +129,6 @@ func savePatch(pbfile string) (*forgepb.Patchset, error) { return pset, nil } -/* -func sendDevelDiff(name string) error { - pset, err := me.forge.MakeDevelPatchSet(name) - if err != nil { - return err - } - - if err := sendPatches(pset); err != nil { - return err - } - return nil -} -*/ - func sendMasterDiff() { pset, err := me.forge.MakeMasterPatchSet() if err != nil { @@ -169,3 +144,4 @@ func sendMasterDiff() { badExit(err) } } +*/ -- cgit v1.2.3