challenger

OAuth 2.0-based authentication service that validates user can receive messages at a certain address
Log | Files | Refs | Submodules | README | LICENSE

commit 6b05c88f754b428cb3d3c14aabcd71fa332fa8d8
parent c27d8132dac61656b399b0882e4f0a2b8b2cccfc
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 13 Aug 2026 20:52:58 +0200

remove dead template logic

Diffstat:
Dsrc/challengerdb/pg_template.sh | 21---------------------
Dsrc/challengerdb/template.c | 26--------------------------
Dsrc/include/challenger-database/template.h | 28----------------------------
3 files changed, 0 insertions(+), 75 deletions(-)

diff --git a/src/challengerdb/pg_template.sh b/src/challengerdb/pg_template.sh @@ -1,21 +0,0 @@ -#!/bin/sh -# This file is in the public domain. -# -# Instantiates pg_template for a particular function. - -for n in $* -do - NCAPS=`echo $n | tr a-z A-Z` - if test ! -e pg_$n.c - then - cat pg_template.c | sed -e s/template/$n/g -e s/TEMPLATE/$NCAPS/g > pg_$n.c - cat pg_template.h | sed -e s/template/$n/g -e s/TEMPLATE/$NCAPS/g > pg_$n.h - echo " plugin->$n\n = &CH_PG_$n;" >> tmpl.c - echo "#include \"pg_$n.h\"" >> tmpl.inc - echo " pg_$n.h pg_$n.c \\" >> tmpl.am - fi -done - -echo "Add lines from tmpl.am to Makefile.am" -echo "Add lines from tmpl.inc to plugin_challengerdb_postgres.c at the beginning" -echo "Add lines from tmpl.c to plugin_challengerdb_postgres.c at the end" diff --git a/src/challengerdb/template.c b/src/challengerdb/template.c @@ -1,26 +0,0 @@ -/* - This file is part of Challenger - Copyright (C) 2023 Taler Systems SA - - Challenger 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. - - Challenger 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 - Challenger; see the file COPYING. If not, see <http://www.gnu.org/licenses/> - */ -/** - * @file src/challengerdb/template.c - * @brief Implementation of the template function for Postgres - * @author Christian Grothoff - */ -#include "platform.h" -#include <taler/taler_error_codes.h> -#include <taler/taler_dbevents.h> -#include <taler/taler_pq_lib.h> -#include "template.h" -#include "pg_helper.h" diff --git a/src/include/challenger-database/template.h b/src/include/challenger-database/template.h @@ -1,28 +0,0 @@ -/* - This file is part of Challenger - Copyright (C) 2023 Taler Systems SA - - Challenger 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. - - Challenger 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 - Challenger; see the file COPYING. If not, see <http://www.gnu.org/licenses/> - */ -/** - * @file src/include/challenger-database/template.h - * @brief implementation of the template function for Postgres - * @author Christian Grothoff - */ -#ifndef CHALLENGER_DATABASE_TEMPLATE_H -#define CHALLENGER_DATABASE_TEMPLATE_H - -#include <taler/taler_util.h> -#include <taler/taler_json_lib.h> - -struct CHALLENGERDB_PostgresContext; -#endif