From 66f473b876e79951d0f8727512bc7f6f9fd1706f Mon Sep 17 00:00:00 2001 From: James Renken Date: Wed, 18 Dec 2024 16:06:20 -0800 Subject: [PATCH] Remove more unused code --- wfe2/wfe.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/wfe2/wfe.go b/wfe2/wfe.go index b5b2b69d150..0ee7e2668db 100644 --- a/wfe2/wfe.go +++ b/wfe2/wfe.go @@ -647,11 +647,6 @@ func link(url, relation string) string { // creation fails, the func will be nil if any error was encountered during the // check. func (wfe *WebFrontEndImpl) checkNewAccountLimits(ctx context.Context, ip net.IP) (func(), error) { - if wfe.limiter == nil && wfe.txnBuilder == nil { - // Key-value rate limiting is disabled. - return nil, nil - } - txns, err := wfe.txnBuilder.NewAccountLimitTransactions(ip) if err != nil { return nil, fmt.Errorf("building new account limit transactions: %w", err) @@ -2056,11 +2051,6 @@ func (wfe *WebFrontEndImpl) orderToOrderJSON(request *http.Request, order *corep // function is returned that can be used to refund the quota if the order is not // created, the func will be nil if any error was encountered during the check. func (wfe *WebFrontEndImpl) checkNewOrderLimits(ctx context.Context, regId int64, names []string, isRenewal bool) (func(), error) { - if wfe.limiter == nil && wfe.txnBuilder == nil { - // Key-value rate limiting is disabled. - return nil, nil - } - txns, err := wfe.txnBuilder.NewOrderLimitTransactions(regId, names, isRenewal) if err != nil { return nil, fmt.Errorf("building new order limit transactions: %w", err)