diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-10-20 16:33:15 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-10-20 22:14:55 +0100 |
commit | 631d7b87b50b7263a2f9a3f89fc196272011bf37 (patch) | |
tree | d0b93dc743a38764ea5d240889fbc72804786486 /synapse/events | |
parent | Merge pull request #2559 from matrix-org/erikj/group_id_validation (diff) | |
download | synapse-631d7b87b50b7263a2f9a3f89fc196272011bf37.tar.xz |
Remove pointless create() method
It just calls the constructor, so we may as well kill it rather than having random codepaths.
Diffstat (limited to 'synapse/events')
-rw-r--r-- | synapse/events/builder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/events/builder.py b/synapse/events/builder.py index 365fd96bd2..13fbba68c0 100644 --- a/synapse/events/builder.py +++ b/synapse/events/builder.py @@ -55,7 +55,7 @@ class EventBuilderFactory(object): local_part = str(int(self.clock.time())) + i + random_string(5) - e_id = EventID.create(local_part, self.hostname) + e_id = EventID(local_part, self.hostname) return e_id.to_string() |