       highlighted_at: undefined
     }
 
-  _annotationFromHighlight: (highlight) ->
-    ranges = try JSON.parse(highlight.pre) catch e then null
-    if ranges
-      {
-        quote: highlight.content
-        text: ""
-        ranges: ranges
-        highlightUrl: highlight.uri
-        commentUrl: ""
-      }
-    else
-      null
-
   _commentFromAnnotation: (annotation) ->
     # Documentation seems to indicate this should be wrapped in an object
     # with a "content" property but that does not seem to work with the

    # See: https://github.com/Readmill/API/wiki/Readings
    {content: annotation.text}

  _onConnectSuccess: (params) =>
    @connected params.access_token, params


    if @client.isAuthorized() and @book.id
      url = @book.reading.highlights

      # Need a text string here rather than an object here for some reason.
      comment = @_commentFromAnnotation(annotation).content
      highlight = @_highlightFromAnnotation annotation

