remove some commented out code

This commit is contained in:
Nan Deng 2014-07-10 11:21:37 -07:00
parent c7f69c2382
commit d5279b54b2

View File

@ -376,25 +376,6 @@ func NewSample(prev, current *ContainerStats) (*ContainerStatsSample, error) {
return sample, nil
}
/*
func NewSamplesFromStats(stats ...*ContainerStats) ([]*ContainerStatsSample, error) {
if len(stats) < 2 {
return nil, nil
}
samples := make([]*ContainerStatsSample, 0, len(stats)-1)
for i, s := range stats[1:] {
prev := stats[i]
sample, err := NewSample(prev, s)
if err != nil {
return nil, fmt.Errorf("Unable to generate sample from %+v and %+v: %v",
prev, s, err)
}
samples = append(samples, sample)
}
return samples, nil
}
*/
type uint64Slice []uint64
func (self uint64Slice) Len() int {