Remove unused code in kube handler

Once we remove kube utils code, we also need remove handler code here.

Closes-Bug: #1437982
Change-Id: I194287284eb5283003da46de84fae2c5cfe87ba2
This commit is contained in:
Kennan 2015-03-30 10:17:52 +08:00
parent 590c312ae0
commit 18fdf357eb
1 changed files with 0 additions and 24 deletions

View File

@ -112,10 +112,6 @@ class Handler(object):
service.refresh(context)
return service
def service_list(self, context):
LOG.debug("service_list")
return self.kube_cli.service_list()
def service_delete(self, context, uuid):
LOG.debug("service_delete %s", uuid)
service = objects.Service.get_by_uuid(context, uuid)
@ -128,14 +124,6 @@ class Handler(object):
# call the service object to persist in db
service.destroy(context)
def service_get(self, context, uuid):
LOG.debug("service_get %s", uuid)
return self.kube_cli.service_get(uuid)
def service_show(self, uuid):
LOG.debug("service_show %s", uuid)
return self.kube_cli.service_show(uuid)
# Pod Operations
def pod_create(self, context, pod):
LOG.debug("pod_create")
@ -166,10 +154,6 @@ class Handler(object):
pod.refresh(context)
return pod
def pod_list(self, context):
LOG.debug("pod_list")
return self.kube_cli.pod_list()
def pod_delete(self, context, uuid):
LOG.debug("pod_delete %s", uuid)
# trigger a kubectl command
@ -188,14 +172,6 @@ class Handler(object):
# call the pod object to persist in db
pod.destroy(context)
def pod_get(self, context, uuid):
LOG.debug("pod_get %s", uuid)
return self.kube_cli.pod_get(uuid)
def pod_show(self, context, uuid):
LOG.debug("pod_show %s", uuid)
return self.kube_cli.pod_show(uuid)
# Replication Controller Operations
def rc_create(self, context, rc):
LOG.debug("rc_create")