remove type ValueFunc from package gcache

This commit is contained in:
John
2020-10-09 23:36:39 +08:00
parent 849874a247
commit f9189d48d1
5 changed files with 9 additions and 17 deletions

View File

@ -9,7 +9,6 @@ package gdebug
import (
"bytes"
"fmt"
"path/filepath"
"runtime"
"strings"
)
@ -72,10 +71,6 @@ func StackWithFilters(filters []string, skip ...int) string {
// Custom filtering.
filtered = false
for _, filter := range filters {
// Ignore test files.
if strings.HasSuffix(filepath.Base(file), "_test.go") {
break
}
if filter != "" && strings.Contains(file, filter) {
filtered = true
break