commit fbb98b0b951ba6ed6f59a6a2d57c851c18e1f383
parent 1d6ded44dd5b3439681ba36f8ee54a0a59226133
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 11 Aug 2025 12:53:40 +0200
DCE
Diffstat:
5 files changed, 0 insertions(+), 116 deletions(-)
diff --git a/src/backenddb/Makefile.am b/src/backenddb/Makefile.am
@@ -122,7 +122,6 @@ libtaler_plugin_merchantdb_postgres_la_SOURCES = \
pg_insert_issued_token.h pg_insert_issued_token.c \
pg_insert_login_token.h pg_insert_login_token.c \
pg_insert_order.h pg_insert_order.c \
- pg_insert_order_budis.h pg_insert_order_budis.c \
pg_insert_order_lock.h pg_insert_order_lock.c \
pg_insert_otp.h pg_insert_otp.c \
pg_insert_pending_webhook.h pg_insert_pending_webhook.c \
diff --git a/src/backenddb/pg_insert_order_budis.c b/src/backenddb/pg_insert_order_budis.c
@@ -1,56 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 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 MERCHANTABILITY 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 backenddb/pg_insert_order_budis.c
- * @brief Implementation of the insert_order_budis function for Postgres
- * @author Bohdan Potuzhnyi
- * @author Vlada Svirsh
- */
-
-#include "platform.h"
-#include <taler/taler_error_codes.h>
-#include <taler/taler_dbevents.h>
-#include <taler/taler_pq_lib.h>
-#include "pg_insert_order_budis.h"
-#include "pg_helper.h"
-
-enum GNUNET_DB_QueryStatus
-TMH_PG_insert_order_budis (
- void *cls,
- const char *order_id,
- const json_t *donau_budis)
-{
- struct PostgresClosure *pg = cls;
-
- struct GNUNET_PQ_QueryParam params[] = {
- GNUNET_PQ_query_param_string (order_id),
- TALER_PQ_query_param_json (donau_budis),
- GNUNET_PQ_query_param_end
- };
-
- check_connection (pg);
-
- PREPARE (pg,
- "insert_order_budis",
- "INSERT INTO merchant_order_donau (order_serial, donau_budis) "
- "SELECT order_serial, $2 "
- "FROM merchant_orders "
- "WHERE order_id = $1");
-
- return GNUNET_PQ_eval_prepared_non_select (pg->conn,
- "insert_order_budis",
- params);
-}
diff --git a/src/backenddb/pg_insert_order_budis.h b/src/backenddb/pg_insert_order_budis.h
@@ -1,43 +0,0 @@
-/*
- This file is part of TALER
- Copyright (C) 2024 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 MERCHANTABILITY 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 backenddb/pg_insert_order_budis.h
- * @brief Declaration of the insert_order_budis function for Postgres
- * @author Bohdan Potuzhnyi
- */
-
-#ifndef PG_INSERT_ORDER_BUDIS_H
-#define PG_INSERT_ORDER_BUDIS_H
-
-#include <taler/taler_util.h>
-#include <taler/taler_json_lib.h>
-#include "taler_merchantdb_plugin.h"
-
-/**
- * Insert Donau BUDIS info for a given order_id into the merchant_order_donau table.
- *
- * @param cls closure (the Postgres handle)
- * @param order_id the merchant order_id to update
- * @param donau_budis JSON describing the BUDIS data for Donau
- * @return transaction status code
- */
-enum GNUNET_DB_QueryStatus
-TMH_PG_insert_order_budis (
- void *cls,
- const char *order_id,
- const json_t *donau_budis);
-
-#endif
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
@@ -88,7 +88,6 @@
#include "pg_lookup_order_summary.h"
#include "pg_lookup_orders.h"
#include "pg_insert_order.h"
-#include "pg_insert_order_budis.h"
#include "pg_insert_order_blinded_sigs.h"
#include "pg_unlock_inventory.h"
#include "pg_insert_order_lock.h"
@@ -488,8 +487,6 @@ libtaler_plugin_merchantdb_postgres_init (void *cls)
= &TMH_PG_lookup_orders;
plugin->insert_order
= &TMH_PG_insert_order;
- plugin->insert_order_budis
- = &TMH_PG_insert_order_budis;
plugin->insert_order_blinded_sigs
= &TMH_PG_insert_order_blinded_sigs;
plugin->unlock_inventory
diff --git a/src/include/taler_merchantdb_plugin.h b/src/include/taler_merchantdb_plugin.h
@@ -2385,19 +2385,6 @@ struct TALER_MERCHANTDB_Plugin
/**
- * Adds BUDIs to the table matching the order
- *
- * @param cls
- * @param order_id alphanumeric string that uniquely identifies the order
- * @param donau_budis JSON object with BUDIs to insert
- */
- enum GNUNET_DB_QueryStatus
- (*insert_order_budis)(void *cls,
- const char *order_id,
- const json_t *donau_budis);
-
-
- /**
* Insert blinded signatures for an order.
*
* @param cls closure