Skip to content

Commit

Permalink
Remove comented code
Browse files Browse the repository at this point in the history
  • Loading branch information
vctt94 committed Jul 2, 2019
1 parent dc426fc commit edd0994
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
9 changes: 0 additions & 9 deletions app/actions/DaemonActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ export const getAvailableWallets = () => async (dispatch, getState) => new Promi
dispatch({ availableWallets, previousWallet, type: AVAILABLE_WALLETS });

resolve({ availableWallets, previousWallet });
// return {;
});

export const removeWallet = (selectedWallet) => (dispatch) => {
Expand Down Expand Up @@ -332,7 +331,6 @@ export const prepStartDaemon = () => (dispatch, getState) => {
dispatch(registerForErrors());
dispatch(checkDecreditonVersion());
if (!daemonAdvanced) {
// dispatch(startDaemon());
return;
}

Expand All @@ -352,13 +350,6 @@ export const prepStartDaemon = () => (dispatch, getState) => {
if(hasAllCredentials && hasAppData)
this.props.setCredentialsAppdataError();

// if (cliOptions.rpcPresent) {
// dispatch(startDaemon(credentials));
// } else if (!openForm && hasAppData) {
// dispatch(startDaemon(null, getAppdataPath()));
// } else if (!openForm && hasAllCredentials) {
// dispatch(startDaemon(credentials));
// }
};

const TIME_TO_TIMEOUT = 30 * 1000; // 30 sec
Expand Down
21 changes: 0 additions & 21 deletions app/actions/WalletLoaderActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export const startRpcRequestFunc = (credentials, privPass, isRetry) =>
return;
}
const { daemon: { walletName }, walletLoader: { discoverAccountsComplete,isWatchingOnly } }= getState();
// const cfg = getWalletCfg(isTestNet(getState()), walletName);
let rpcuser, rpccertPath, rpcpass, daemonhost, rpcport;

if (credentials) {
Expand All @@ -219,26 +218,6 @@ export const startRpcRequestFunc = (credentials, privPass, isRetry) =>
rpcport = credentials.rpc_port;
}

// if (cliOptions.rpcPresent) {
// rpcuser = cliOptions.rpcUser;
// rpcpass = cliOptions.rpcPass;
// rpccertPath = cliOptions.rpcCert;
// daemonhost = cliOptions.rpcHost;
// rpcport = cliOptions.rpcPort;
// } else if (credentials) {
// rpcuser = credentials.rpc_user;
// rpccertPath = credentials.rpc_cert;
// rpcpass = credentials.rpc_pass;
// daemonhost = credentials.rpc_host;
// rpcport = credentials.rpc_port;
// } else if (appdata) {

// } else {
// rpcuser = cfg.get("rpc_user");
// rpcpass = cfg.get("rpc_pass");
// daemonhost = cfg.get("rpc_host");
// rpcport = cfg.get("rpc_port");
// }
var request = new RpcSyncRequest();
const cert = getDcrdCert(rpccertPath);
request.setNetworkAddress(daemonhost + ":" + rpcport);
Expand Down

0 comments on commit edd0994

Please sign in to comment.