Skip to content

Commit

Permalink
[#3009] Delete an unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Nov 15, 2012
1 parent 79e28c0 commit af925e2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ckan/logic/action/get.py
Expand Up @@ -2267,13 +2267,6 @@ def dashboard_new_activities_count(context, data_dict):
return len([activity for activity in activities if activity['is_new']])


def dashboard_get_last_viewed(context, data_dict):
model = context['model']
user = model.User.get(context['user']) # The authorized user.
last_viewed = model.Dashboard.get_activity_stream_last_viewed(user.id)
return last_viewed.timetuple()


def dashboard_mark_activities_as_read(context, data_dict):
'''Mark all the authorized user's new dashboard activities as old.
Expand Down

0 comments on commit af925e2

Please sign in to comment.