From 41763bc3f768474901ddd7ed757a1836672fa18f Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 26 Jul 2023 12:29:32 +0300 Subject: [PATCH] Removing @optional support --- src/codegen.inc.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/codegen.inc.php b/src/codegen.inc.php index 0baf125..1ad679c 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -24,7 +24,6 @@ function supported_tokens() return [ 'POD', 'default', - 'optional', 'bitfields', 'cloneable', 'virtual', @@ -386,10 +385,6 @@ function is_null_str($default) function var_sync($fname, \mtgType $type, $buf, array $tokens, $opts) { - $optional = array_key_exists('optional', $tokens); - if($optional) - $opts .= " | MetaSyncFieldOpts.SKIP_OPTIONAL"; - $key_name = array_key_exists('alias', $tokens) ? $tokens['alias'] : $fname; $str = '';