Remove commented out code from coordination service
Clean up and remove commented out code from the coordination service.
@@ -180,46 +180,3 @@ def get_coordinator():
COORDINATOR = coordinator_setup()
return COORDINATOR
-
-
-# class LockAcquireError(Exception):
-# pass
-
-
-# class lock(object):
-# def __init__(self, name, timeout=5000):
-# self._name = name
-# self._lock = None
-# self._timeout = timeout
-
-# def __call__(self, func):
-# @wraps(func)
-# def with_lock(*args, **kwds):
-# with self:
-# return func(*args, **kwds)
-# return with_lock
-
-# def _setup(self):
-# if COORDINATOR is None:
-# get_coordinator()
-
-# if not self._lock:
-# self._lock = COORDINATOR.get_lock(self._name)
-
-# if self._timeout <= 0:
-# LOG.warning("Failed to secure lock for %s.", self._name)
-# raise LockAcquireError("Could not acquire lock for %s" % self._name)
-
-# def __enter__(self):
-# self._setup()
-
-# LOG.debug("Attempting to secure lock for: %s", self._name)
-# if not self._lock.acquire():
-# LOG.info("Could not secure lock for %s. Retrying.", self._name)
-# self._timeout -= 1
-# eventlet.sleep(.25)
-# self.__enter__()
-
-# def __exit__(self, *_args, **_kwargs):
-# LOG.debug("Releasing lock for: %s", self._name)
-# self._lock.release()
