From a6deee497c1e4515c426d755f2b473905b958eca Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Tue, 1 Oct 2024 12:48:26 +0200
Subject: fix clang build issue

---
 src/exchange/taler-exchange-httpd_kyc-wallet.c     |  1 -
 src/exchange/taler-exchange-httpd_purses_merge.c   |  1 -
 src/exchange/taler-exchange-httpd_reserves_close.c |  1 -
 src/exchange/taler-exchange-httpd_reserves_purse.c |  1 -
 src/exchange/taler-exchange-httpd_withdraw.h       | 53 ----------------------
 5 files changed, 57 deletions(-)
 delete mode 100644 src/exchange/taler-exchange-httpd_withdraw.h

(limited to 'src/exchange')

diff --git a/src/exchange/taler-exchange-httpd_kyc-wallet.c b/src/exchange/taler-exchange-httpd_kyc-wallet.c
index 903d87de0..de93c74ef 100644
--- a/src/exchange/taler-exchange-httpd_kyc-wallet.c
+++ b/src/exchange/taler-exchange-httpd_kyc-wallet.c
@@ -30,7 +30,6 @@
 #include "taler-exchange-httpd_common_kyc.h"
 #include "taler-exchange-httpd_kyc-wallet.h"
 #include "taler-exchange-httpd_responses.h"
-#include "taler-exchange-httpd_withdraw.h"
 
 
 /**
diff --git a/src/exchange/taler-exchange-httpd_purses_merge.c b/src/exchange/taler-exchange-httpd_purses_merge.c
index 0f6a1e498..7c542242c 100644
--- a/src/exchange/taler-exchange-httpd_purses_merge.c
+++ b/src/exchange/taler-exchange-httpd_purses_merge.c
@@ -33,7 +33,6 @@
 #include "taler-exchange-httpd_common_kyc.h"
 #include "taler-exchange-httpd_purses_merge.h"
 #include "taler-exchange-httpd_responses.h"
-#include "taler-exchange-httpd_withdraw.h"
 #include "taler_exchangedb_lib.h"
 #include "taler-exchange-httpd_keys.h"
 
diff --git a/src/exchange/taler-exchange-httpd_reserves_close.c b/src/exchange/taler-exchange-httpd_reserves_close.c
index bf5815f78..711129927 100644
--- a/src/exchange/taler-exchange-httpd_reserves_close.c
+++ b/src/exchange/taler-exchange-httpd_reserves_close.c
@@ -30,7 +30,6 @@
 #include "taler-exchange-httpd_common_kyc.h"
 #include "taler-exchange-httpd_keys.h"
 #include "taler-exchange-httpd_reserves_close.h"
-#include "taler-exchange-httpd_withdraw.h"
 #include "taler-exchange-httpd_responses.h"
 
 
diff --git a/src/exchange/taler-exchange-httpd_reserves_purse.c b/src/exchange/taler-exchange-httpd_reserves_purse.c
index d5a111d5a..26425448b 100644
--- a/src/exchange/taler-exchange-httpd_reserves_purse.c
+++ b/src/exchange/taler-exchange-httpd_reserves_purse.c
@@ -32,7 +32,6 @@
 #include "taler-exchange-httpd_common_kyc.h"
 #include "taler-exchange-httpd_reserves_purse.h"
 #include "taler-exchange-httpd_responses.h"
-#include "taler-exchange-httpd_withdraw.h"
 #include "taler_exchangedb_lib.h"
 #include "taler-exchange-httpd_keys.h"
 
diff --git a/src/exchange/taler-exchange-httpd_withdraw.h b/src/exchange/taler-exchange-httpd_withdraw.h
deleted file mode 100644
index 45ac6340f..000000000
--- a/src/exchange/taler-exchange-httpd_withdraw.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-  This file is part of TALER
-  Copyright (C) 2014-2022 Taler Systems SA
-
-  TALER is free software; you can redistribute it and/or modify it under the
-  terms of the GNU Affero 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 Affero General Public License for more details.
-
-  You should have received a copy of the GNU Affero General Public License along with
-  TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
-*/
-/**
- * @file taler-exchange-httpd_withdraw.h
- * @brief common code for withdraw requests
- * @author Christian Grothoff
- */
-#ifndef TALER_EXCHANGE_HTTPD_WITHDRAW_H
-#define TALER_EXCHANGE_HTTPD_WITHDRAW_H
-
-#include <microhttpd.h>
-#include "taler-exchange-httpd.h"
-
-
-/**
- * Do legitimization check for withdrawing @a withdraw_total
- * from @a reserve_pub at time @a now.
- *
- * @param[out] kyc set to kyc status
- * @param[out] h_payto set to payto hash of origin account
- * @param[in,out] connection used to return hard errors
- * @param[out] mhd_ret set if errors were returned
- *     (only on hard error)
- * @param reserve_pub reserve from which we withdraw
- * @param withdraw_total how much are being withdrawn
- * @param now current time
- * @return transaction status, error will have been
- *   queued if transaction status is set to hard error
- */
-enum GNUNET_DB_QueryStatus
-TEH_withdraw_kyc_check (
-  struct TALER_EXCHANGEDB_KycStatus *kyc,
-  struct TALER_PaytoHashP *h_payto,
-  struct MHD_Connection *connection,
-  MHD_RESULT *mhd_ret,
-  const struct TALER_ReservePublicKeyP *reserve_pub,
-  const struct TALER_Amount *withdraw_total,
-  struct GNUNET_TIME_Timestamp now);
-
-#endif
-- 
cgit v1.2.3

