From 8f5526763c90b12aff42b124466c8f5e91d628a2 Mon Sep 17 00:00:00 2001 From: Anant Prakash Date: Wed, 4 Jul 2018 15:35:20 +0530 Subject: [PATCH] Remove unused params (#538) Signed-off-by: Anant Prakash --- .../matrix-org/dendrite/federationapi/routing/events.go | 5 ----- .../matrix-org/dendrite/federationapi/routing/routing.go | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/federationapi/routing/events.go b/src/github.com/matrix-org/dendrite/federationapi/routing/events.go index ed56ec7a..c4248022 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/events.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/events.go @@ -17,9 +17,7 @@ package routing import ( "context" "net/http" - "time" - "github.com/matrix-org/dendrite/common/config" "github.com/matrix-org/dendrite/roomserver/api" "github.com/matrix-org/gomatrixserverlib" "github.com/matrix-org/util" @@ -29,10 +27,7 @@ import ( func GetEvent( ctx context.Context, request *gomatrixserverlib.FederationRequest, - _ config.Dendrite, query api.RoomserverQueryAPI, - _ time.Time, - _ gomatrixserverlib.KeyRing, eventID string, ) util.JSONResponse { event, err := getEvent(ctx, request, query, eventID) diff --git a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go index eede7f48..91069895 100644 --- a/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/federationapi/routing/routing.go @@ -103,7 +103,7 @@ func Setup( func(httpReq *http.Request, request *gomatrixserverlib.FederationRequest) util.JSONResponse { vars := mux.Vars(httpReq) return GetEvent( - httpReq.Context(), request, cfg, query, time.Now(), keys, vars["eventID"], + httpReq.Context(), request, query, vars["eventID"], ) }, )).Methods(http.MethodGet)