summaryrefslogtreecommitdiff
path: root/handlePatches.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-08 22:43:12 -0500
committerJeff Carr <[email protected]>2025-09-08 22:44:16 -0500
commit7ea7393d6c41b8d656442ead4030c8ea8be27dda (patch)
treea944e81c7b6073d6996881c64d45be81e8dca33e /handlePatches.go
parentb9ec316d35631d99c01cc943699189c3031152a7 (diff)
much better and easier to read code
Diffstat (limited to 'handlePatches.go')
-rw-r--r--handlePatches.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/handlePatches.go b/handlePatches.go
index 8d2d93c..595a918 100644
--- a/handlePatches.go
+++ b/handlePatches.go
@@ -4,7 +4,6 @@ import (
"net/http"
"go.wit.com/lib/protobuf/forgepb"
- "go.wit.com/lib/protobuf/gitpb"
"go.wit.com/lib/protobuf/httppb"
"go.wit.com/log"
)
@@ -47,17 +46,13 @@ func sendPendingPatchsets(pb *forgepb.Patchsets, reqPB *httppb.HttpRequest) *for
return allPatchsetsPB
}
-func makeReposPB(reqPB *httppb.HttpRequest) (*gitpb.Repos, error) {
- pb := gitpb.NewRepos()
- err := pb.Unmarshal(reqPB.ServerData)
- return pb, err
-}
-
+/*
func makePatchesPB(reqPB *httppb.HttpRequest) (*forgepb.Patches, error) {
pb := forgepb.NewPatches()
err := pb.Unmarshal(reqPB.ServerData)
return pb, err
}
+*/
func makePatchsetsPB(reqPB *httppb.HttpRequest) (*forgepb.Patchsets, error) {
pb := forgepb.NewPatchsets()