message: Delete unused code.
diff: @@ -247,78 +247,6 @@ class FuncGraph(CapturingGraph):
  return internal_tensor
  -# pylint: disable=invalid-name
  -class HelperContext(object):
  - """ControlFlowContext with a customizable AddOp method."""
  -
  - def __init__(self, add_op_internal):
  - self._add_op_internal = add_op_internal
  - self._values = set() # control flow code sometimes updates this.
  -
  - def _AddOpInternal(self, op):
  - self._add_op_internal(op)
  -
  - @property
  - def outer_context(self):
  - return self._outer_context
  -
  - def GetWhileContext(self):
  - if self._outer_context:
  - return self._outer_context.GetWhileContext()
  -
  - def IsWhileContext(self):
  - return False
  -
  - def IsCondContext(self):
  - return False
  -
  - def IsXLAContext(self):
  - return False
  -
  - def AddOp(self, op): # pylint: disable=invalid-name
  - self._AddOpInternal(op)
  - if self._outer_context:
  - self._outer_context.AddOp(op)
  -
  - def AddName(self, _):
  - pass
  -
  - def AddInnerOp(self, op):
  - self._AddOpInternal(op)
  - if self._outer_context:
  - self._outer_context.AddInnerOp(op)
  -
  - def AddValue(self, val):
  - if self._outer_context:
  - return self._outer_context.AddValue(val)
  - else:
  - return val
  -
  - def EnterGradientColocation(self, op, gradient_uid):
  - """Start building a gradient colocated with an op."""
  - if self._outer_context:
  - self._outer_context.EnterGradientColocation(op, gradient_uid)
  -
  - def ExitGradientColocation(self, op, gradient_uid):
  - """Start building a gradient colocated with an op."""
  - if self._outer_context:
  - self._outer_context.ExitGradientColocation(op, gradient_uid)
  -
  - def __enter__(self):
  - # pylint: disable=protected-access
  - self._g = ops.get_default_graph()
  - self._outer_context = self._g._get_control_flow_context()
  - self._g._set_control_flow_context(self)
  - self._nested_contexts = (
  - self._outer_context._nested_contexts
  - if self._outer_context is not None else None)
  - # pylint: enable=protected-access
  -
  - def __exit__(self, *_):
  - self._g._set_control_flow_context(self._outer_context) # pylint: disable=protected-access
  -# pylint: enable=invalid-name
  -
  -
  def _forward_name(n):
  """The name of a generated forward defun named n."""
  return "__forward_%s_%s" % (n, ops.uid())
  