Skip to content

Commit

Permalink
Remove more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jprenken committed Dec 19, 2024
1 parent d3381d5 commit 66f473b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions wfe2/wfe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 66f473b

Please sign in to comment.