dce: redundant arg

This commit is contained in:
Florian Dold 2020-01-18 04:20:29 +01:00
parent 47698761d0
commit 0cebe32fc6
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
11 changed files with 4 additions and 32 deletions

View File

@ -187,9 +187,7 @@ CMD_TRANSFER_TO_EXCHANGE (char *label, char *amount)
{ {
return TALER_TESTING_cmd_admin_add_incoming_retry return TALER_TESTING_cmd_admin_add_incoming_retry
(TALER_TESTING_cmd_admin_add_incoming (label, amount, (TALER_TESTING_cmd_admin_add_incoming (label, amount,
exchange_bank_account. &exchange_bank_account,
wire_gateway_url,
NULL,
user_payto_url)); user_payto_url));
} }

View File

@ -831,8 +831,6 @@ TALER_TESTING_cmd_bank_credits (const char *label,
* Make a debit "history" CMD. * Make a debit "history" CMD.
* *
* @param label command label. * @param label command label.
* @param account_url base URL of the account offering the "history"
* operation.
* @param auth authentication data * @param auth authentication data
* @param start_row_reference reference to a command that can * @param start_row_reference reference to a command that can
* offer a row identifier, to be used as the starting row * offer a row identifier, to be used as the starting row
@ -842,7 +840,6 @@ TALER_TESTING_cmd_bank_credits (const char *label,
*/ */
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_bank_debits (const char *label, TALER_TESTING_cmd_bank_debits (const char *label,
const char *account_url,
const struct TALER_BANK_AuthenticationData *auth, const struct TALER_BANK_AuthenticationData *auth,
const char *start_row_reference, const char *start_row_reference,
long long num_results); long long num_results);
@ -864,7 +861,6 @@ TALER_TESTING_cmd_bank_debits (const char *label,
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_transfer (const char *label, TALER_TESTING_cmd_transfer (const char *label,
const char *amount, const char *amount,
const char *bank_base_url,
const struct TALER_BANK_AuthenticationData *auth, const struct TALER_BANK_AuthenticationData *auth,
const char *payto_debit_account, const char *payto_debit_account,
const char *payto_credit_account, const char *payto_credit_account,
@ -879,8 +875,6 @@ TALER_TESTING_cmd_transfer (const char *label,
* *
* @param label command label. * @param label command label.
* @param amount amount to transfer. * @param amount amount to transfer.
* @param exchange_base_url base URL of the exchange account that receives this
* wire transer (which account receives money).
* @param payto_debit_account which account sends money. * @param payto_debit_account which account sends money.
* @param auth authentication data * @param auth authentication data
* @return the command. * @return the command.
@ -888,7 +882,6 @@ TALER_TESTING_cmd_transfer (const char *label,
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_admin_add_incoming (const char *label, TALER_TESTING_cmd_admin_add_incoming (const char *label,
const char *amount, const char *amount,
const char *exchange_base_url,
const struct const struct
TALER_BANK_AuthenticationData *auth, TALER_BANK_AuthenticationData *auth,
const char *payto_debit_account); const char *payto_debit_account);

View File

@ -82,7 +82,6 @@ static struct TALER_TESTING_BankConfiguration bc;
*/ */
#define CMD_TRANSFER_TO_EXCHANGE(label,amount) \ #define CMD_TRANSFER_TO_EXCHANGE(label,amount) \
TALER_TESTING_cmd_admin_add_incoming (label, amount, \ TALER_TESTING_cmd_admin_add_incoming (label, amount, \
bc.exchange_auth.wire_gateway_url, \
&bc.exchange_auth, \ &bc.exchange_auth, \
bc.user42_payto) bc.user42_payto)

View File

@ -74,7 +74,6 @@ run (void *cls,
1), 1),
TALER_TESTING_cmd_admin_add_incoming ("credit-1", TALER_TESTING_cmd_admin_add_incoming ("credit-1",
"KUDOS:5.01", "KUDOS:5.01",
bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
bc.user42_payto), bc.user42_payto),
TALER_TESTING_cmd_bank_credits ("history-1c", TALER_TESTING_cmd_bank_credits ("history-1c",
@ -82,25 +81,21 @@ run (void *cls,
NULL, NULL,
5), 5),
TALER_TESTING_cmd_bank_debits ("history-1d", TALER_TESTING_cmd_bank_debits ("history-1d",
bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
NULL, NULL,
5), 5),
TALER_TESTING_cmd_admin_add_incoming ("credit-2", TALER_TESTING_cmd_admin_add_incoming ("credit-2",
"KUDOS:3.21", "KUDOS:3.21",
bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
bc.user42_payto), bc.user42_payto),
TALER_TESTING_cmd_transfer ("debit-1", TALER_TESTING_cmd_transfer ("debit-1",
"KUDOS:3.22", "KUDOS:3.22",
bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
bc.exchange_payto, bc.exchange_payto,
bc.user42_payto, bc.user42_payto,
&wtid, &wtid,
"http://exchange.example.com/"), "http://exchange.example.com/"),
TALER_TESTING_cmd_bank_debits ("history-2b", TALER_TESTING_cmd_bank_debits ("history-2b",
bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
NULL, NULL,
5), 5),

View File

@ -82,7 +82,6 @@ static struct TALER_TESTING_BankConfiguration bc;
*/ */
#define CMD_TRANSFER_TO_EXCHANGE(label,amount) \ #define CMD_TRANSFER_TO_EXCHANGE(label,amount) \
TALER_TESTING_cmd_admin_add_incoming (label, amount, \ TALER_TESTING_cmd_admin_add_incoming (label, amount, \
bc.exchange_auth.wire_gateway_url, \
&bc.exchange_auth, \ &bc.exchange_auth, \
bc.user42_payto) bc.user42_payto)

View File

@ -68,7 +68,6 @@ run (void *cls,
*/ */
TALER_TESTING_cmd_admin_add_incoming ("create-reserve-1", TALER_TESTING_cmd_admin_add_incoming ("create-reserve-1",
"EUR:5.01", "EUR:5.01",
bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
bc.user42_payto), bc.user42_payto),
TALER_TESTING_cmd_check_bank_admin_transfer ("check-create-reserve-1", TALER_TESTING_cmd_check_bank_admin_transfer ("check-create-reserve-1",

View File

@ -91,7 +91,6 @@ static struct GNUNET_OS_Process *twisterd;
*/ */
#define CMD_TRANSFER_TO_EXCHANGE(label,amount) \ #define CMD_TRANSFER_TO_EXCHANGE(label,amount) \
TALER_TESTING_cmd_admin_add_incoming (label, amount, \ TALER_TESTING_cmd_admin_add_incoming (label, amount, \
bc.exchange_auth.wire_gateway_url, \
&bc.exchange_auth, \ &bc.exchange_auth, \
bc.user42_payto) bc.user42_payto)

View File

@ -54,7 +54,6 @@ transfer_to_exchange (const char *label,
{ {
return TALER_TESTING_cmd_admin_add_incoming (label, return TALER_TESTING_cmd_admin_add_incoming (label,
amount, amount,
bc.exchange_auth.wire_gateway_url,
&bc.exchange_auth, &bc.exchange_auth,
bc.user42_payto); bc.user42_payto);
} }

View File

@ -484,8 +484,6 @@ make_command (const char *label,
* *
* @param label command label. * @param label command label.
* @param amount amount to transfer. * @param amount amount to transfer.
* @param exchange_base_url base URL of the account that receives this
* wire transer (which account receives money).
* @param payto_debit_account which account sends money. * @param payto_debit_account which account sends money.
* @param auth authentication data * @param auth authentication data
* @return the command. * @return the command.
@ -494,13 +492,12 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_admin_add_incoming TALER_TESTING_cmd_admin_add_incoming
(const char *label, (const char *label,
const char *amount, const char *amount,
const char *exchange_base_url,
const struct TALER_BANK_AuthenticationData *auth, const struct TALER_BANK_AuthenticationData *auth,
const char *payto_debit_account) const char *payto_debit_account)
{ {
return make_command (label, return make_command (label,
make_fts (amount, make_fts (amount,
exchange_base_url, auth->wire_gateway_url,
auth, auth,
payto_debit_account)); payto_debit_account));
} }

View File

@ -566,8 +566,6 @@ history_cleanup (void *cls,
* Make a "history" CMD. * Make a "history" CMD.
* *
* @param label command label. * @param label command label.
* @param account_url base URL of the account offering the "history"
* operation.
* @param auth login data to use * @param auth login data to use
* @param start_row_reference reference to a command that can * @param start_row_reference reference to a command that can
* offer a row identifier, to be used as the starting row * offer a row identifier, to be used as the starting row
@ -577,7 +575,6 @@ history_cleanup (void *cls,
*/ */
struct TALER_TESTING_Command struct TALER_TESTING_Command
TALER_TESTING_cmd_bank_debits (const char *label, TALER_TESTING_cmd_bank_debits (const char *label,
const char *account_url,
const struct TALER_BANK_AuthenticationData *auth, const struct TALER_BANK_AuthenticationData *auth,
const char *start_row_reference, const char *start_row_reference,
long long num_results) long long num_results)
@ -585,7 +582,7 @@ TALER_TESTING_cmd_bank_debits (const char *label,
struct HistoryState *hs; struct HistoryState *hs;
hs = GNUNET_new (struct HistoryState); hs = GNUNET_new (struct HistoryState);
hs->account_url = account_url; hs->account_url = auth->wire_gateway_url;
hs->start_row_reference = start_row_reference; hs->start_row_reference = start_row_reference;
hs->num_results = num_results; hs->num_results = num_results;
hs->auth = *auth; hs->auth = *auth;

View File

@ -334,8 +334,6 @@ transfer_traits (void *cls,
* *
* @param label command label. * @param label command label.
* @param amount amount to transfer. * @param amount amount to transfer.
* @param account_base_url base URL of the account that implements this
* wire transer (which account gives money).
* @param auth authentication data to use * @param auth authentication data to use
* @param payto_credit_account which account receives money. * @param payto_credit_account which account receives money.
* @param wtid wire transfer identifier to use * @param wtid wire transfer identifier to use
@ -346,7 +344,6 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_transfer TALER_TESTING_cmd_transfer
(const char *label, (const char *label,
const char *amount, const char *amount,
const char *account_base_url,
const struct TALER_BANK_AuthenticationData *auth, const struct TALER_BANK_AuthenticationData *auth,
const char *payto_debit_account, const char *payto_debit_account,
const char *payto_credit_account, const char *payto_credit_account,
@ -356,7 +353,7 @@ TALER_TESTING_cmd_transfer
struct TransferState *fts; struct TransferState *fts;
fts = GNUNET_new (struct TransferState); fts = GNUNET_new (struct TransferState);
fts->account_debit_url = account_base_url; fts->account_debit_url = auth->wire_gateway_url;
fts->exchange_base_url = exchange_base_url; fts->exchange_base_url = exchange_base_url;
fts->payto_debit_account = GNUNET_strdup (payto_debit_account); fts->payto_debit_account = GNUNET_strdup (payto_debit_account);
fts->payto_credit_account = payto_credit_account; fts->payto_credit_account = payto_credit_account;