Removed unused function from Assets.php