Removed unused code in activity model