Commits

Donald Stufft  committed a8b54ed

Remove a function that wasn't being used

  • Participants
  • Parent commits 922c5ad
  • Branches werkzeug

Comments (0)

Files changed (1)

     def xmlrpc(self):
         rpc.handle_request(self)
 
-    def get_accept_encoding(self, supported):
-        accept_encoding = self.env.get('HTTP_ACCEPT_ENCODING')
-        if not accept_encoding:
-            return None
-        accept_encoding = accept_encoding.split(',')
-        result = {}
-        for s in accept_encoding:
-            s = s.split(';') # gzip;q=0.6
-            if len(s) == 1:
-                result[s[0].strip()] = 1.0
-            elif s[1].startswith('q='):
-                result[s[0].strip()] = float(s[1][2:])
-            else:
-                # not the correct format
-                result[s[0].strip()] = 1.0
-        best_prio = 0
-        best_enc = None
-        for enc in supported:
-            if enc in result:
-                prio = result[enc]
-            elif '*' in result:
-                prio = result['*']
-            else:
-                prio = 0
-            if prio > best_prio:
-                best_prio, best_enc = prio, enc
-        return best_enc
-
     def do_simple_index(self, request, database):
         html = [
             "<html><head><title>Simple Index</title>",