         kd.info "Revive triggered for #{machineId}", machine
 
 
-  setDomain: (machine, newDomain, callback = kd.noop) ->
-
-    @getKloud().setDomain { machineId: machine._id, newDomain }
-    .nodeify callback
-
-
-  fetchPlanCombo: (provider, callback)->
-
-    [callback, provider] = [provider, callback]  unless callback?
-    provider ?= "koding"
-
-    @fetchUserPlan (plan)=> @fetchPlans (plans)=>
-      @fetchUsage { provider }, (err, usage)=>
-        @fetchRewards { unit: 'GB' }, (err, reward)->
-          callback err, { plan, plans, usage, reward }
-
-  fetchRewards: (options, callback)->
-
-    {unit} = options
-
-    options =
-      unit  : 'MB'
-      type  : 'disk'
-
-    remote.api.JReward.fetchEarnedAmount options, (err, amount)->
-
-      if err
-        amount = 0
-        kd.warn err
-
-      amount = Math.floor amount / 1000  if unit is 'GB'
-
-      callback null, amount
-
-
-  findMachineFromMachineId: (machineId)->
-
-    for machine in @machines
-      return machine  if machine._id is machineId
-
-  findMachineFromQueryString: (queryString)->
-
-    for machine in @machines
-      return machine  if machine.queryString is queryString
-
   invalidateCache: (machineId)->
 
     machine = @findMachineFromMachineId machineId

module.exports = class ComputeController extends KDController

  @providers = globals.config.providers

  @timeout = globals.config.COMPUTECONTROLLER_TIMEOUT

  @Error = {
    'TimeoutError', 'KiteError',
    Pending: '107', NotVerified: '500'
  }

  constructor:->

    super


      username     : globals.config.kites.kontrol.username


  reset: (render = no)->

    @stacks   = []
