From ab63e8bd049a1923e45d893187109e59e56e965f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 8 Jul 2019 11:55:00 -0600 Subject: [PATCH] Remove backwards compat function --- src/MatrixClientPeg.js | 7 ------- src/components/structures/RoomDirectory.js | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index a994725f56..db3e542af9 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -201,13 +201,6 @@ class MatrixClientPeg { return matches[1]; } - /** - * @deprecated Use getHomeserverName() instead (correct spelling) - */ - getHomeServerName() { - return this.getHomeserverName(); - } - _createClient(creds: MatrixClientCreds) { const aggregateRelations = SettingsStore.isFeatureEnabled("feature_reactions"); const enableEdits = SettingsStore.isFeatureEnabled("feature_message_editing"); diff --git a/src/components/structures/RoomDirectory.js b/src/components/structures/RoomDirectory.js index a98afdce2a..eb78888741 100644 --- a/src/components/structures/RoomDirectory.js +++ b/src/components/structures/RoomDirectory.js @@ -145,7 +145,7 @@ module.exports = React.createClass({ // too. If it's changed, appending to the list will corrupt it. const my_next_batch = this.nextBatch; const opts = {limit: 20}; - if (my_server != MatrixClientPeg.getHomeServerName()) { + if (my_server != MatrixClientPeg.getHomeserverName()) { opts.server = my_server; } if (this.state.instanceId) {