old_contents: # -*- coding: utf-8 -*-
  from django.conf import settings
  
  
  def global_context(request):
      """
      Adds additional context variables to the default context.
      """
      context = {
          'WITH_WS4REDIS': hasattr(settings, 'WEBSOCKET_URL'),
      }
  #     if context['WITH_WS4REDIS']:
  #         context.update({
  #             'WEBSOCKET_URI': settings.WEBSOCKET_URI,
  #             'WS4REDIS_HEARTBEAT': settings.WS4REDIS_HEARTBEAT,
  #         })
      return context
  
new_contents: # -*- coding: utf-8 -*-
  from django.conf import settings
  
  
  def global_context(request):
      """
      Adds additional context variables to the default context.
      """
      context = {
          'WITH_WS4REDIS': hasattr(settings, 'WEBSOCKET_URL'),
      }
      return context
  
subject: remove dead code