Skip to content

Commit ae07e53

Browse files
committed
Remove stray function.
Signed-off-by: Katharine Berry <[email protected]>
1 parent 95fed20 commit ae07e53

File tree

1 file changed

+0
-8
lines changed
  • service/assistant/functions

1 file changed

+0
-8
lines changed

service/assistant/functions/poi.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,6 @@ func searchPoiThought(args interface{}) string {
9696
return fmt.Sprintf("Looking for %s nearby...", poiQuery.Query)
9797
}
9898

99-
func chargeQuota(ctx context.Context, quotaTracker *quota.Tracker) {
100-
// Try charging a global quota of 1,000 calls first.
101-
// Charge the user for the function call.
102-
if err := quotaTracker.ChargeCredits(ctx, quota.PoiSearchCredits); err != nil {
103-
log.Printf("Failed to charge credits: %v", err)
104-
}
105-
}
106-
10799
func searchPoi(ctx context.Context, quotaTracker *quota.Tracker, args interface{}) interface{} {
108100
ctx, span := beeline.StartSpan(ctx, "search_poi")
109101
defer span.Send()

0 commit comments

Comments
 (0)