[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] 02/04: remove dead code.
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] 02/04: remove dead code. |
Date: |
Tue, 08 May 2018 23:52:55 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository merchant.
commit 8c46f3bb4466f4b78cd9cc2c1447fc9fc82f2a62
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue May 8 15:35:07 2018 +0200
remove dead code.
---
.../taler-merchant-generate-payments_new.c | 66 +---------------------
1 file changed, 3 insertions(+), 63 deletions(-)
diff --git a/src/merchant-tools/taler-merchant-generate-payments_new.c
b/src/merchant-tools/taler-merchant-generate-payments_new.c
index 01033c6..407f4fe 100644
--- a/src/merchant-tools/taler-merchant-generate-payments_new.c
+++ b/src/merchant-tools/taler-merchant-generate-payments_new.c
@@ -87,8 +87,8 @@ static char *merchant_url;
* Actual commands collection.
*/
static void
-run_commands (void *cls,
- struct TALER_TESTING_Interpreter *is)
+run (void *cls,
+ struct TALER_TESTING_Interpreter *is)
{
struct TALER_TESTING_Command commands[] = {
TALER_TESTING_cmd_end ()
@@ -111,66 +111,6 @@ terminate_process (struct GNUNET_OS_Process *process)
}
/**
- * Main function that will be run by the scheduler,
- * mainly needed to get the configuration filename to use.
- *
- * @param cls closure
- * @param args remaining command-line arguments
- * @param cfgfile name of the configuration file
- * used (for saving, can be NULL!)
- * @param config configuration
- */
-static void
-run (void *cls,
- char *const *args,
- const char *cfgfile,
- const struct GNUNET_CONFIGURATION_Handle *config)
-{
- if (NULL == merchant_url)
- {
- TALER_LOG_ERROR ("Option -m is mandatory!\n");
- result = 2;
- return;
- }
-
- if (NULL == (merchantd = TALER_TESTING_run_merchant
- (cfgfile, merchant_url)))
- {
- TALER_LOG_ERROR ("Failed to launch the merchant\n");
- result = 3;
- GNUNET_OS_process_kill (merchantd, SIGTERM);
- GNUNET_OS_process_wait (merchantd);
- GNUNET_OS_process_destroy (merchantd);
- return;
- }
-
- if (NULL == bank_url)
- {
- TALER_LOG_ERROR ("Option -b is mandatory!\n");
- result = 5;
- return;
- }
- if (NULL == (bankd = TALER_TESTING_run_bank (cfgfile,
- bank_url)))
- {
- TALER_LOG_ERROR ("Failed to run the bank\n");
- result = 4;
- GNUNET_OS_process_kill (merchantd, SIGTERM);
- GNUNET_OS_process_wait (merchantd);
- GNUNET_OS_process_destroy (merchantd);
- return;
- }
-
- GNUNET_OS_process_kill (merchantd, SIGTERM);
- GNUNET_OS_process_wait (merchantd);
- GNUNET_OS_process_destroy (merchantd);
- GNUNET_OS_process_kill (bankd, SIGTERM);
- GNUNET_OS_process_wait (bankd);
- GNUNET_OS_process_destroy (bankd);
-}
-
-
-/**
* The main function of the serve tool
*
* @param argc number of arguments from the command line
@@ -275,7 +215,7 @@ main (int argc,
}
result = TALER_TESTING_setup_with_exchange
- (run_commands,
+ (run,
options,
default_config_file);
return result;
--
To stop receiving notification emails like this one, please contact
address@hidden