mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Remove synchrnized and persistent attributes.
Code that was used by them is still there.
This commit is contained in:
parent
5d44735209
commit
61c84a0a40
9 changed files with 4 additions and 90 deletions
20
src/Var.cc
20
src/Var.cc
|
@ -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() &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue