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 = '';