Remove synchrnized and persistent attributes.

Code that was used by them is still there.
This commit is contained in:
Johanna Amann 2019-05-02 13:02:38 -07:00
parent 5d44735209
commit 61c84a0a40
9 changed files with 4 additions and 90 deletions

View file

@ -142,26 +142,6 @@ static void make_var(ID* id, BroType* t, init_class c, Expr* init,
}
}
if ( id->FindAttr(ATTR_PERSISTENT) || id->FindAttr(ATTR_SYNCHRONIZED) )
{
if ( dt == VAR_CONST )
{
id->Error("&persistent/synchronized with constant");
return;
}
else if ( dt == VAR_OPTION )
{
id->Error("&persistent/synchronized with option");
return;
}
if ( ! id->IsGlobal() )
{
id->Error("&persistant/synchronized with non-global");
return;
}
}
if ( do_init )
{
if ( c == INIT_NONE && dt == VAR_REDEF && t->IsTable() &&