mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +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
33
src/ID.cc
33
src/ID.cc
|
@ -78,12 +78,6 @@ void ID::SetVal(Val* v, Opcode op, bool arg_weak_ref)
|
|||
|
||||
MutableVal::Properties props = 0;
|
||||
|
||||
if ( attrs && attrs->FindAttr(ATTR_SYNCHRONIZED) )
|
||||
props |= MutableVal::SYNCHRONIZED;
|
||||
|
||||
if ( attrs && attrs->FindAttr(ATTR_PERSISTENT) )
|
||||
props |= MutableVal::PERSISTENT;
|
||||
|
||||
if ( attrs && attrs->FindAttr(ATTR_TRACKED) )
|
||||
props |= MutableVal::TRACKED;
|
||||
|
||||
|
@ -198,27 +192,12 @@ void ID::UpdateValAttrs()
|
|||
|
||||
if ( val && val->IsMutableVal() )
|
||||
{
|
||||
if ( attrs->FindAttr(ATTR_SYNCHRONIZED) )
|
||||
props |= MutableVal::SYNCHRONIZED;
|
||||
|
||||
if ( attrs->FindAttr(ATTR_PERSISTENT) )
|
||||
props |= MutableVal::PERSISTENT;
|
||||
|
||||
if ( attrs->FindAttr(ATTR_TRACKED) )
|
||||
props |= MutableVal::TRACKED;
|
||||
|
||||
val->AsMutableVal()->AddProperties(props);
|
||||
}
|
||||
|
||||
if ( ! IsInternalGlobal() )
|
||||
{
|
||||
if ( attrs->FindAttr(ATTR_SYNCHRONIZED) )
|
||||
remote_serializer->Register(this);
|
||||
|
||||
if ( attrs->FindAttr(ATTR_PERSISTENT) )
|
||||
persistence_serializer->Register(this);
|
||||
}
|
||||
|
||||
if ( val && val->Type()->Tag() == TYPE_TABLE )
|
||||
val->AsTableVal()->SetAttrs(attrs);
|
||||
|
||||
|
@ -281,12 +260,6 @@ void ID::RemoveAttr(attr_tag a)
|
|||
{
|
||||
MutableVal::Properties props = 0;
|
||||
|
||||
if ( a == ATTR_SYNCHRONIZED )
|
||||
props |= MutableVal::SYNCHRONIZED;
|
||||
|
||||
if ( a == ATTR_PERSISTENT )
|
||||
props |= MutableVal::PERSISTENT;
|
||||
|
||||
if ( a == ATTR_TRACKED )
|
||||
props |= MutableVal::TRACKED;
|
||||
|
||||
|
@ -473,12 +446,6 @@ ID* ID::Unserialize(UnserialInfo* info)
|
|||
}
|
||||
}
|
||||
|
||||
if ( id->FindAttr(ATTR_PERSISTENT) )
|
||||
persistence_serializer->Register(id);
|
||||
|
||||
if ( id->FindAttr(ATTR_SYNCHRONIZED) )
|
||||
remote_serializer->Register(id);
|
||||
|
||||
return id;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue