mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 03:46:09 -05:00
Merge pull request #288 from matrix-org/markjh/unused_definitions
Remove some of the unused definitions from synapse
This commit is contained in:
commit
301141515a
18 changed files with 162 additions and 588 deletions
|
|
@ -85,12 +85,6 @@ import time
|
|||
logger = logging.getLogger("synapse.app.homeserver")
|
||||
|
||||
|
||||
class GzipFile(File):
|
||||
def getChild(self, path, request):
|
||||
child = File.getChild(self, path, request)
|
||||
return EncodingResourceWrapper(child, [GzipEncoderFactory()])
|
||||
|
||||
|
||||
def gz_wrap(r):
|
||||
return EncodingResourceWrapper(r, [GzipEncoderFactory()])
|
||||
|
||||
|
|
@ -134,6 +128,7 @@ class SynapseHomeServer(HomeServer):
|
|||
# (It can stay enabled for the API resources: they call
|
||||
# write() with the whole body and then finish() straight
|
||||
# after and so do not trigger the bug.
|
||||
# GzipFile was removed in commit 184ba09
|
||||
# return GzipFile(webclient_path) # TODO configurable?
|
||||
return File(webclient_path) # TODO configurable?
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue