Issue #2685615 by heykarthikwithu: Remove depreciated methods and unused imports in code base' --author="heykarthikwithu <heykarthikwithu@2833651.no-reply.drupal.org>