Skip to content

Commit

Permalink
Merge pull request kubernetes#239 from jjhuff/dead_code
Browse files Browse the repository at this point in the history
Remove extractMultipleFromReader and extractSingleFromReader.
  • Loading branch information
brendandburns committed Jun 25, 2014
2 parents c3da356 + ddf0fd1 commit b2a7d19
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions pkg/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package kubelet
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"log"
"math/rand"
Expand Down Expand Up @@ -442,32 +441,6 @@ func (kl *Kubelet) extractFromDir(name string) ([]api.ContainerManifest, error)
return manifests, nil
}

func (kl *Kubelet) extractMultipleFromReader(reader io.Reader) ([]api.ContainerManifest, error) {
var manifests []api.ContainerManifest
data, err := ioutil.ReadAll(reader)
if err != nil {
log.Printf("Couldn't read from reader: %v", err)
return manifests, err
}
if err = kl.ExtractYAMLData(data, &manifests); err != nil {
return manifests, err
}
return manifests, nil
}

func (kl *Kubelet) extractSingleFromReader(reader io.Reader) (api.ContainerManifest, error) {
var manifest api.ContainerManifest
data, err := ioutil.ReadAll(reader)
if err != nil {
log.Printf("Couldn't read from reader: %v", err)
return manifest, err
}
if err = kl.ExtractYAMLData(data, &manifest); err != nil {
return manifest, err
}
return manifest, nil
}

// Watch a file or direcory of files for changes to the set of pods that
// should run on this Kubelet.
func (kl *Kubelet) WatchFiles(config_path string, updateChannel chan<- manifestUpdate) {
Expand Down

0 comments on commit b2a7d19

Please sign in to comment.