gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-donau] branch master updated: cleanup


From: gnunet
Subject: [taler-donau] branch master updated: cleanup
Date: Tue, 02 Jan 2024 16:36:38 +0100

This is an automated email from the git hooks/post-receive script.

johannes-casaburi pushed a commit to branch master
in repository donau.

The following commit(s) were added to refs/heads/master by this push:
     new c010881  cleanup
c010881 is described below

commit c0108813b534993cc72244357c4657499ac50de1
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
AuthorDate: Tue Jan 2 16:36:20 2024 +0100

    cleanup
---
 src/lib/donau_api_common.c   | 83 --------------------------------------------
 src/lib/donau_api_common.h   | 30 ----------------
 src/testing/test_donau_api.c |  9 -----
 3 files changed, 122 deletions(-)

diff --git a/src/lib/donau_api_common.c b/src/lib/donau_api_common.c
deleted file mode 100644
index 474405b..0000000
--- a/src/lib/donau_api_common.c
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
-  This file is part of TALER
-  Copyright (C) 2015-2022 Taler Systems SA
-
-  TALER is free software; you can redistribute it and/or modify it under the
-  terms of the GNU General Public License as published by the Free Software
-  Foundation; either version 3, or (at your option) any later version.
-
-  TALER is distributed in the hope that it will be useful, but WITHOUT ANY
-  WARRANTY; without even the implied warranty of CHARITYABILITY or FITNESS FOR
-  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License along with
-  TALER; see the file COPYING.  If not, see
-  <http://www.gnu.org/licenses/>
-*/
-/**
- * @file lib/donau_api_common.c
- * @brief common functions for the donau API
- * @author Christian Grothoff
- */
-#include "taler/platform.h"
-#include "taler/taler_json_lib.h"
-#include <gnunet/gnunet_curl_lib.h>
-#include "donau_api_common.h"
-#include "donau_api_handle.h"
-#include "taler_signatures.h"
-
-
-/**
- * Context for history entry helpers.
- */
-struct HistoryParseContext
-{
-
-  /**
-   * Keys of the donau we use.
-   */
-  const struct DONAU_Keys *keys;
-
-  /**
-   * Our reserve public key.
-   */
-  const struct TALER_ReservePublicKeyP *reserve_pub;
-
-  /**
-   * Array of UUIDs.
-   */
-  struct GNUNET_HashCode *uuids;
-
-  /**
-   * Where to sum up total inbound amounts.
-   */
-  struct TALER_Amount *total_in;
-
-  /**
-   * Where to sum up total outbound amounts.
-   */
-  struct TALER_Amount *total_out;
-
-  /**
-   * Number of entries already used in @e uuids.
-   */
-  unsigned int uuid_off;
-};
-
-
-/**
- * Type of a function called to parse a reserve history
- * entry @a rh.
- *
- * @param[in,out] rh where to write the result
- * @param[in,out] uc UUID context for duplicate detection
- * @param transaction the transaction to parse
- * @return #GNUNET_OK on success
- */
-typedef enum GNUNET_GenericReturnValue
-(*ParseHelper)(struct DONAU_ReserveHistoryEntry *rh,
-               struct HistoryParseContext *uc,
-               const json_t *transaction);
-
-
-/* end of donau_api_common.c */
diff --git a/src/lib/donau_api_common.h b/src/lib/donau_api_common.h
deleted file mode 100644
index 18bb67e..0000000
--- a/src/lib/donau_api_common.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-  This file is part of TALER
-  Copyright (C) 2015-2022 Taler Systems SA
-
-  TALER is free software; you can redistribute it and/or modify it under the
-  terms of the GNU General Public License as published by the Free Software
-  Foundation; either version 3, or (at your option) any later version.
-
-  TALER is distributed in the hope that it will be useful, but WITHOUT ANY
-  WARRANTY; without even the implied warranty of CHARITYABILITY or FITNESS FOR
-  A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License along with
-  TALER; see the file COPYING.  If not, see
-  <http://www.gnu.org/licenses/>
-*/
-/**
- * @file lib/donau_api_common.h
- * @brief common functions for the donau API
- * @author Christian Grothoff
- */
-#ifndef DONAU_API_COMMON_H
-#define DONAU_API_COMMON_H
-
-#include "taler/taler_json_lib.h"
-#include "donau_service.h"
-
-// Checks
-
-#endif
diff --git a/src/testing/test_donau_api.c b/src/testing/test_donau_api.c
index 88298e8..5787319 100644
--- a/src/testing/test_donau_api.c
+++ b/src/testing/test_donau_api.c
@@ -41,12 +41,6 @@
  */
 static char *config_file;
 
-/**
- * Special configuration file to use when we want reserves
- * to expire 'immediately'.
- */
-static char *config_file_expire_reserve_now;
-
 /**
  * Our credentials.
  */
@@ -91,9 +85,6 @@ main (int argc,
     GNUNET_asprintf (&config_file,
                      "test_donau_api-%s.conf",
                      cipher);
-    GNUNET_asprintf (&config_file_expire_reserve_now,
-                     "test_donau_api_expire_reserve_now-%s.conf",
-                     cipher);
     GNUNET_free (cipher);
   }
   return TALER_TESTING_main (argv,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]