From 5b1ba5186906308176245817b2290e6f03e9c039 Mon Sep 17 00:00:00 2001 From: Sean Hammond Date: Mon, 19 Nov 2012 17:32:15 +0100 Subject: [PATCH] [#1635] Delete unused action function --- ckan/logic/action/get.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ckan/logic/action/get.py b/ckan/logic/action/get.py index 95ab72119a6..f9904860407 100644 --- a/ckan/logic/action/get.py +++ b/ckan/logic/action/get.py @@ -2286,26 +2286,6 @@ def dashboard_email_notification_last_sent(context, data_dict): return last_viewed -def get_email_notifications(context, data_dict): - '''Return a list of new email notifications for the given user. - - :param: - - - ''' - if not context.has_key('user'): - raise logic.NotAuthorized - - model = context['model'] - - userobj = model.User.get(context['user']) - if not userobj: - raise logic.NotAuthorized - - activity_stream = logic.get_action('dashboard_activity_list')(context, - data_dict) - - def _unpick_search(sort, allowed_fields=None, total=None): ''' This is a helper function that takes a sort string eg 'name asc, last_modified desc' and returns a list of