Removing @optional support

This commit is contained in:
Pavel Shevaev 2023-07-26 12:29:32 +03:00
parent ae5cdf831e
commit 41763bc3f7
1 changed files with 0 additions and 5 deletions

View File

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