rm old code
This commit is contained in:
parent
5e71dd3ecc
commit
607886cc6a
|
@ -2,7 +2,6 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"go.wit.com/lib/protobuf/forgepb"
|
"go.wit.com/lib/protobuf/forgepb"
|
||||||
"go.wit.com/lib/protobuf/gitpb"
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
|
@ -48,6 +47,7 @@ func sendPendingPatchsets(pb *forgepb.Patchsets, reqPB *httppb.HttpRequest) *for
|
||||||
return allPatchsetsPB
|
return allPatchsetsPB
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func handlePatches(w http.ResponseWriter, pb *forgepb.Patches) error {
|
func handlePatches(w http.ResponseWriter, pb *forgepb.Patches) error {
|
||||||
route := pb.HttpRequest.Route
|
route := pb.HttpRequest.Route
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ func handlePatches(w http.ResponseWriter, pb *forgepb.Patches) error {
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
func makeReposPB(reqPB *httppb.HttpRequest) (*gitpb.Repos, error) {
|
func makeReposPB(reqPB *httppb.HttpRequest) (*gitpb.Repos, error) {
|
||||||
pb := gitpb.NewRepos()
|
pb := gitpb.NewRepos()
|
||||||
|
@ -85,6 +86,7 @@ func sendPatchesError(w http.ResponseWriter, r *forgepb.Patches, err error) erro
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func marshalPatchesPB(r *http.Request, msg []byte) (*forgepb.Patches, error) {
|
func marshalPatchesPB(r *http.Request, msg []byte) (*forgepb.Patches, error) {
|
||||||
pb := forgepb.NewPatches()
|
pb := forgepb.NewPatches()
|
||||||
|
|
||||||
|
@ -98,3 +100,4 @@ func marshalPatchesPB(r *http.Request, msg []byte) (*forgepb.Patches, error) {
|
||||||
pb.AddHttpToPB(r)
|
pb.AddHttpToPB(r)
|
||||||
return pb, nil
|
return pb, nil
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
Loading…
Reference in New Issue