Remove unused members

This commit is contained in:
Wojciech Tyczynski
2015-08-06 08:57:29 +02:00
parent cb49b195a6
commit 20e84d2eb1
6 changed files with 8 additions and 36 deletions

View File

@@ -80,13 +80,10 @@ func NewStorage(s storage.Interface, k client.ConnectionInfoGetter) PodStorage {
}
statusStore := *store
bindings := &podLifecycle{}
store.CreateStrategy = pod.Strategy
store.UpdateStrategy = pod.Strategy
store.AfterUpdate = bindings.AfterUpdate
store.DeleteStrategy = pod.Strategy
store.ReturnDeletedObject = true
store.AfterDelete = bindings.AfterDelete
statusStore.UpdateStrategy = pod.StatusStrategy
@@ -181,16 +178,6 @@ func (r *BindingREST) assignPod(ctx api.Context, podID string, machine string, a
return
}
type podLifecycle struct{}
func (h *podLifecycle) AfterUpdate(obj runtime.Object) error {
return nil
}
func (h *podLifecycle) AfterDelete(obj runtime.Object) error {
return nil
}
// StatusREST implements the REST endpoint for changing the status of a pod.
type StatusREST struct {
store *etcdgeneric.Etcd