         router.handleRoute '/Logout'
         @hide()
 
-  populatePendingGroups:->
-    @listControllerPending.removeAllItems()
-    @listControllerPending.hideLazyLoader()
-
-    return  unless isLoggedIn()
-
-    whoami().fetchGroupsWithPendingInvitations (err, groups)=>
-      if err then kd.warn err
-      else if groups?
-        @pending = 0
-        for group in groups when group
-          @listControllerPending.addItem {group, roles:[], admin:no}
-          @pending++
-        @updatePendingCount()
-        @notPopulatedPending = no
-
 
   populateGroups:->
     return  if not isLoggedIn() or @isLoading

    @_popupListPending = new PopupList
      itemClass  : PopupGroupListItemPending

    # does not work yet
    # @_popupListPending.on 'PendingCountDecreased', @bound 'decreasePendingCount'
    # @_popupListPending.on 'UpdateGroupList',       @bound 'populateGroups'
    # whoami().on        'NewPendingInvitation',  @bound 'populatePendingGroups'

    @listControllerPending = new KDListViewController
      lazyLoaderOptions   :
        partial           : ''

    # Commenting out these lines because of
    # removal of the groups links from avatar popup. ~Umut
    # @populateGroups() if @notPopulated

  hide:->
    super
