   $.post('/passwd/post/v1/settings', {userId: userId, shipId: shipId})
     .success -> location.href = "/user/#{userId}/top"
     .error (e) -> console.error(e)
-
-graphOpts = [
-  {
-    url: (userid) -> "/rest/v1/#{userid}/basics"
-    trans: transExps
-    name: 'admiral_exp'
-  },
-  {
-    url: (userid) -> "/rest/v2/user/#{userid}/scores"
-    trans: transRates
-    name: 'admiral_score'
-  }
-]

      $.ajax('/passwd/post/v1/yome', {type: 'DELETE', data: data})
        .success ->
          location.reload(true)

transExps = (data) -> [
  data: data.map (x) -> [x['created'], x['experience']]

# Require graph.coffee

$(document).ready ->
  userid = $('#userid').val()
  fixWidth()
  graphExps(userid)
  graphScore(userid)

  $('button.delete-yome').each ->
    $(@).click ->
