Skip to content

Commit

Permalink
delete old grpc method impl
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Feb 8, 2024
1 parent 2faf4ee commit d21abc7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/vinceanalytics/vince/stats"
"github.com/vinceanalytics/vince/tracker"
"github.com/vinceanalytics/vince/version"
"google.golang.org/protobuf/types/known/emptypb"
)

type API struct {
Expand Down Expand Up @@ -84,12 +83,6 @@ func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request) {
a.hand.ServeHTTP(w, r)
}

func (a *API) GetVersion(_ context.Context, _ *emptypb.Empty) (*v1.Version, error) {
return &v1.Version{
Version: version.VERSION,
}, nil
}

func SendEvent(w http.ResponseWriter, r *http.Request) {
var req v1.Event
if !request.Read(w, r, &req) {
Expand Down

0 comments on commit d21abc7

Please sign in to comment.