Removing @optional support
This commit is contained in:
parent
ae5cdf831e
commit
41763bc3f7
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue