Skip to content

Commit

Permalink
Remove unused go/stats code (#17742)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
  • Loading branch information
dbussink authored Feb 12, 2025
1 parent e697991 commit a10d34c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 117 deletions.
63 changes: 0 additions & 63 deletions go/stats/kebab_case_converter.go

This file was deleted.

54 changes: 0 additions & 54 deletions go/stats/kebab_case_converter_test.go

This file was deleted.

10 changes: 10 additions & 0 deletions go/stats/snake_case_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package stats
import (
"regexp"
"strings"
"sync"
)

// GetSnakeName calls toSnakeName on the passed in string. It produces
Expand Down Expand Up @@ -59,6 +60,15 @@ var snakeConverters = []struct {
{regexp.MustCompile("-"), "_"},
}

var memoizer = memoizerType{
memo: make(map[string]string),
}

type memoizerType struct {
sync.Mutex
memo map[string]string
}

var snakeMemoizer = memoizerType{
memo: make(map[string]string),
}

0 comments on commit a10d34c

Please sign in to comment.