diff --git a/jmclient/jmclient/configure.py b/jmclient/jmclient/configure.py index ef5c1c0..73d8ba7 100644 --- a/jmclient/jmclient/configure.py +++ b/jmclient/jmclient/configure.py @@ -493,15 +493,6 @@ def _get_irc_mchannels_old(): configs.append(newconfig) return configs - -def get_config_irc_channel(channel_name): - channel = "#" + channel_name - if get_network() == 'testnet': - channel += '-test' - elif get_network() == 'signet': - channel += '-sig' - return channel - class JMPluginService(object): """ Allows us to configure on-startup any additional service (such as SNICKER). diff --git a/jmclient/test/test_configure.py b/jmclient/test/test_configure.py index 4ab50c9..1b34ecd 100644 --- a/jmclient/test/test_configure.py +++ b/jmclient/test/test_configure.py @@ -1,9 +1,8 @@ '''test configure module.''' import pytest -from jmclient import load_test_config, jm_single, get_irc_mchannels -from jmclient.configure import (get_config_irc_channel, - get_blockchain_interface_instance) +from jmclient import load_test_config, jm_single +from jmclient.configure import get_blockchain_interface_instance def test_attribute_dict(): @@ -24,16 +23,6 @@ def test_load_config(tmpdir): load_test_config() -def test_config_get_irc_channel(): - load_test_config() - channel = "dummy" - assert get_config_irc_channel(channel) == "#dummy-test" - jm_single().config.set("BLOCKCHAIN", "network", "mainnet") - assert get_config_irc_channel(channel) == "#dummy" - get_irc_mchannels() - load_test_config() - - def test_blockchain_sources(): load_test_config() for src in ["electrum", "dummy"]: