mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #27300 from euank/remove-dead-stack-get
Automatic merge from submit-queue kubelt: Remove a couple lines of dead code Presumably that code was added for debugging reasons and never removed. Hopefully. If it's actually important and there's a good reason to do what looks like a no-op to get pause-the-world behaviour or whatever, I'd hope there'd be a comment. cc @pwittrock
This commit is contained in:
commit
ea1248e9f2
@ -18,7 +18,6 @@ package stats
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"runtime"
|
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -53,8 +52,6 @@ var _ SummaryProvider = &summaryProviderImpl{}
|
|||||||
|
|
||||||
// NewSummaryProvider returns a new SummaryProvider
|
// NewSummaryProvider returns a new SummaryProvider
|
||||||
func NewSummaryProvider(statsProvider StatsProvider, fsResourceAnalyzer fsResourceAnalyzerInterface, cruntime container.Runtime) SummaryProvider {
|
func NewSummaryProvider(statsProvider StatsProvider, fsResourceAnalyzer fsResourceAnalyzerInterface, cruntime container.Runtime) SummaryProvider {
|
||||||
stackBuff := []byte{}
|
|
||||||
runtime.Stack(stackBuff, false)
|
|
||||||
return &summaryProviderImpl{statsProvider, fsResourceAnalyzer, cruntime}
|
return &summaryProviderImpl{statsProvider, fsResourceAnalyzer, cruntime}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user