aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-templates.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-templates.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-templates.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-templates.c b/src/backend/taler-merchant-httpd_private-post-templates.c
index 7aa72992..ae2a6948 100644
--- a/src/backend/taler-merchant-httpd_private-post-templates.c
+++ b/src/backend/taler-merchant-httpd_private-post-templates.c
@@ -47,12 +47,6 @@ templates_equal (const struct TALER_MERCHANTDB_TemplateDetails *t1,
(NULL != t2->otp_id) &&
(0 == strcmp (t1->otp_id,
t2->otp_id))) ) &&
- ( ( (NULL == t1->required_currency) &&
- (NULL == t2->required_currency) ) ||
- ( (NULL != t1->required_currency) &&
- (NULL != t2->required_currency) &&
- (0 == strcmp (t1->required_currency,
- t2->required_currency))) ) &&
( ( (NULL == t1->editable_defaults) &&
(NULL == t2->editable_defaults) ) ||
( (NULL != t1->editable_defaults) &&
@@ -85,10 +79,6 @@ TMH_private_post_templates (const struct TMH_RequestHandler *rh,
GNUNET_JSON_spec_json ("template_contract",
&tp.template_contract),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_string ("required_currency",
- (const char **) &tp.required_currency),
- NULL),
- GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_json ("editable_defaults",
&tp.editable_defaults),
NULL),
@@ -124,28 +114,6 @@ TMH_private_post_templates (const struct TMH_RequestHandler *rh,
"template_contract");
}
- if ( (NULL != tp.required_currency) &&
- (GNUNET_OK !=
- TALER_check_currency (tp.required_currency)) )
- {
- GNUNET_break_op (0);
- GNUNET_JSON_parse_free (spec);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_GENERIC_PARAMETER_MALFORMED,
- "required_currency");
- }
- if ( (NULL != tp.required_currency) &&
- (NULL != json_object_get (tp.template_contract,
- "amount")) )
- {
- GNUNET_break_op (0);
- GNUNET_JSON_parse_free (spec);
- return TALER_MHD_reply_with_error (connection,
- MHD_HTTP_BAD_REQUEST,
- TALER_EC_GENERIC_PARAMETER_MALFORMED,
- "required_currency and contract::amount specified");
- }
if (NULL != tp.editable_defaults)
{
const char *key;