From c19a07be81886d7d4fbf5cbacc89baf2c002961b Mon Sep 17 00:00:00 2001 From: Elena Bobkova Date: Thu, 22 Nov 2018 14:27:20 +0300 Subject: [PATCH] unused macros removed --- KotlinServer/utils.twig | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/KotlinServer/utils.twig b/KotlinServer/utils.twig index e353148..e283d99 100644 --- a/KotlinServer/utils.twig +++ b/KotlinServer/utils.twig @@ -8,20 +8,6 @@ {%- endif -%} {% endmacro %} -{% macro writeInclusionAnnotation(nullable, optional) %} -{%- if nullable -%} - @JsonInclude(JsonInclude.Include.ALWAYS){{ " " }} -{%- elseif optional -%} - @JsonInclude(JsonInclude.Include.NON_NULL){{ " " }} -{%- endif -%} -{% endmacro %} - -{% macro includeDateFormat(valueType) %} -{%- if valueType.baseTypeName == "DateTime" -%} -@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssX", timezone = "UTC") -{%- endif -%} -{% endmacro %} - {% macro formatValueType(valueType, nullable, optional) %} {% import _self as self %} {%- if valueType.baseTypeName == "Bool" -%}