Skip to content

Commit 3bca4bd

Browse files
committed
Removes useless Pass method
1 parent 2868115 commit 3bca4bd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

ctx.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ type ctx[B any] interface {
8181
// return c.Redirect(301, "/recipes-list")
8282
// })
8383
Redirect(code int, url string) (any, error)
84-
85-
Pass() ContextNoBody
8684
}
8785

8886
// NewContext returns a new context. It is used internally by Fuego. You probably want to use Ctx[B] instead.
@@ -107,10 +105,6 @@ type ContextWithBody[Body any] struct {
107105
ContextNoBody
108106
}
109107

110-
func (c *ContextWithBody[B]) Pass() ContextNoBody {
111-
return c.ContextNoBody
112-
}
113-
114108
// ContextNoBody is used when the controller does not have a body.
115109
// It used as a base context for other Context types.
116110
type ContextNoBody struct {
@@ -175,10 +169,6 @@ func (c ContextNoBody) Redirect(code int, url string) (any, error) {
175169
return nil, nil
176170
}
177171

178-
func (c ContextNoBody) Pass() ContextNoBody {
179-
return c
180-
}
181-
182172
func (c ContextNoBody) Context() context.Context {
183173
return c.request.Context()
184174
}

0 commit comments

Comments
 (0)