Removed obsolete function in off canvas directive.