def remove_featured_activity(activity_type, activity_id):
 featured_references = get_featured_activity_references()
 activity_reference_found = False
 new_activity_references = []
 for reference in featured_references:
  if ((reference.type != activity_type) or (reference.id != activity_id)):
   new_activity_references.append(reference)
  else:
   activity_reference_found = True
 if activity_reference_found:
  logging.info(('The %s with id %s was removed from the featured list.' % (activity_type, activity_id)))
  update_featured_activity_references(new_activity_references)

def remove_featured_activity ( activity_type , activity_id ) : featured_references = get_featured_activity_references ( ) activity_reference_found = False new_activity_references = [ ] for reference in featured_references : if ( ( reference . type != activity_type ) or ( reference . id != activity_id ) ) : new_activity_references . append ( reference ) else : activity_reference_found = True if activity_reference_found : logging . info ( ( 'The %s with id %s was removed from the featured list.' % ( activity_type , activity_id ) ) ) update_featured_activity_references ( new_activity_references )
removes the specified activity reference from the list of featured activity references .