summary refs log tree commit diff
path: root/synapse/util/jsonobject.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-28 13:45:23 +0100
committerErik Johnston <erik@matrix.org>2015-05-28 13:45:23 +0100
commit31ade3b3e957986bc13d4dfe8780ef1abb1a10cc (patch)
treee3fd559e774afe7e1394e8a4054f14d4289c702a /synapse/util/jsonobject.py
parentRegistration should be disabled by default (diff)
downloadsynapse-31ade3b3e957986bc13d4dfe8780ef1abb1a10cc.tar.xz
Remove a deep copy
Diffstat (limited to '')
-rw-r--r--synapse/util/jsonobject.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/synapse/util/jsonobject.py b/synapse/util/jsonobject.py
index 0765f7d217..186ff2335b 100644
--- a/synapse/util/jsonobject.py
+++ b/synapse/util/jsonobject.py
@@ -76,15 +76,7 @@ class JsonEncodedObject(object):
             if k in self.valid_keys and k not in self.internal_keys
         }
         d.update(self.unrecognized_keys)
-        return copy.deepcopy(d)
-
-    def get_full_dict(self):
-        d = {
-            k: _encode(v) for (k, v) in self.__dict__.items()
-            if k in self.valid_keys or k in self.internal_keys
-        }
-        d.update(self.unrecognized_keys)
-        return copy.deepcopy(d)
+        return d
 
     def __str__(self):
         return "(%s, %s)" % (self.__class__.__name__, repr(self.__dict__))