     :incomplete
   end
 
-  def parse_connection_resp(data, connection_op) do
-    parse_resp(connection_op, data, nil)
-  end
-
   @doc """
   Parses the response to a given operation.
 

            {sid, {:error, error}, rest}
        end
    end
  end

  defp parse_header(@ok <> <<sid :: int, rest :: binary>>),

  to determine the structure of the response. `schema` is passed down to the
  record deserialization (in case there are records) in order to decode possible
  property ids.

  The return value is a three-element tuple:

    * the first element is the session id of the response.
    * the second element is the actual response (which can be `{:ok, something}`
      or `{:error, reason}`.
    * the third element is what remains of `data` after parsing it according to
      `op_name`.

  """
  @spec parse_resp(atom, binary, Dict.t) ::
    :incomplete |
    {integer, {:ok, term} | {:error, term}, binary}
  def parse_resp(op_name, data, schema) do
    case parse_header(data) do
      :incomplete ->
