Remove unused parameters

This commit is contained in:
Till Faelligen 2020-10-28 21:07:38 +01:00
parent 3bcda42b37
commit 6ebd54ffe5
2 changed files with 2 additions and 3 deletions

View file

@ -410,8 +410,7 @@ func checkMemberInRoom(ctx context.Context, rsAPI api.RoomserverInternalAPI, use
func SendForget(
req *http.Request, device *userapi.Device,
roomID string, cfg *config.ClientAPI,
rsAPI roomserverAPI.RoomserverInternalAPI, asAPI appserviceAPI.AppServiceQueryAPI,
roomID string, rsAPI roomserverAPI.RoomserverInternalAPI,
) util.JSONResponse {
ctx := req.Context()
logger := util.GetLogger(ctx).WithField("roomID", roomID).WithField("userID", device.UserID)

View file

@ -718,7 +718,7 @@ func Setup(
if err != nil {
return util.ErrorResponse(err)
}
return SendForget(req, device, vars["roomID"], cfg, rsAPI, asAPI)
return SendForget(req, device, vars["roomID"], rsAPI)
}),
).Methods(http.MethodPost, http.MethodOptions)