 
     @one selector, defaultOptions, (err, cache)-> kallback err, cache, callback
 
-  @byId = (id, callback)->
-
-    selector = _id : id
-
-    @one selector, defaultOptions, (err, cache)-> kallback err, cache, callback
-
   @containsTimestamp = (timestamp, callback)->
 
     date     = new Date timestamp
     selector = to : { $gte : date }
 
     @one selector, defaultOptions, (err, cache)-> kallback err, cache, callback
-
-  # create initial activity cache
-  # FIXME: this would fail if there are more than 1000 activities
-  # between from and to
 
   @init = (from, to)->
 

          unsetModifier["activities.#{idToDelete}"] = 1
          unsetModifier["overview.#{overviewIndexToDelete}"] = 1


          log ">>>", unsetModifier

          cache.update
            $unset : unsetModifier
            $set   : isFull : no
          , ->
            log "activity removed from cache!"

  # update:do ->
  #   updateQueue = []
  #   update =(rest..., callback)->

  #     updateQueue.push =>
  #       jraphical.Module::update.apply @, rest.concat =>
  #         callback arguments
  #         updateQueue.next()

  #     unless updateQueue.length
  #       daisy updateQueue

    sort  : to : -1

  kallback = (err, cache, callback)->
    if err        then callback err
    else if cache then callback err, cache
    else               callback null, null

  @latest = (callback)->

