mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Remove long-unused core.btc.UserAgent class
This was added way back in 8f8866da
and has since fallen out of use
entirely.
Removing it now because it depends on BisqEnvironment.appName, which
will be moved to Config in the next commit.
This commit is contained in:
parent
e0766af5d0
commit
1842c47b2b
3 changed files with 0 additions and 51 deletions
|
@ -210,9 +210,6 @@ public class BisqEnvironment extends StandardEnvironment {
|
|||
setProperty(BtcOptionKeys.USE_ALL_PROVIDED_NODES, useAllProvidedNodes);
|
||||
setProperty(BtcOptionKeys.NUM_CONNECTIONS_FOR_BTC, numConnectionForBtc);
|
||||
setProperty(BtcOptionKeys.IGNORE_LOCAL_BTC_NODE, String.valueOf(ignoreLocalBtcNode));
|
||||
|
||||
setProperty(UserAgent.NAME_KEY, appName);
|
||||
setProperty(UserAgent.VERSION_KEY, Version.VERSION);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -76,10 +76,6 @@ public class BitcoinModule extends AppModule {
|
|||
bind(RegTestHost.class).toInstance(RegTestHost.REMOTE_HOST);
|
||||
}
|
||||
|
||||
bindConstant().annotatedWith(named(UserAgent.NAME_KEY)).to(environment.getRequiredProperty(UserAgent.NAME_KEY));
|
||||
bindConstant().annotatedWith(named(UserAgent.VERSION_KEY)).to(environment.getRequiredProperty(UserAgent.VERSION_KEY));
|
||||
bind(UserAgent.class).in(Singleton.class);
|
||||
|
||||
bind(File.class).annotatedWith(named(WALLET_DIR)).toInstance(config.getWalletDir());
|
||||
|
||||
bindConstant().annotatedWith(named(BtcOptionKeys.BTC_NODES)).to(environment.getRequiredProperty(BtcOptionKeys.BTC_NODES));
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* This file is part of Bisq.
|
||||
*
|
||||
* Bisq is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* Bisq is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
|
||||
* License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package bisq.core.btc;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.inject.Named;
|
||||
|
||||
public class UserAgent {
|
||||
public static final String NAME_KEY = "useragent.name";
|
||||
public static final String VERSION_KEY = "useragent.version";
|
||||
|
||||
private final String name;
|
||||
private final String version;
|
||||
|
||||
@Inject
|
||||
public UserAgent(@Named(NAME_KEY) String name, @Named(VERSION_KEY) String version) {
|
||||
this.name = name;
|
||||
this.version = version;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getVersion() {
|
||||
return version;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue