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:
k8s-merge-robot 2016-06-25 20:23:38 -07:00 committed by GitHub
commit ea1248e9f2

View File

@ -18,7 +18,6 @@ package stats
import (
"fmt"
"runtime"
"strings"
"time"
@ -53,8 +52,6 @@ var _ SummaryProvider = &summaryProviderImpl{}
// NewSummaryProvider returns a new SummaryProvider
func NewSummaryProvider(statsProvider StatsProvider, fsResourceAnalyzer fsResourceAnalyzerInterface, cruntime container.Runtime) SummaryProvider {
stackBuff := []byte{}
runtime.Stack(stackBuff, false)
return &summaryProviderImpl{statsProvider, fsResourceAnalyzer, cruntime}
}