mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Remove unused attributes
Removed attributes &postprocessor and &match from documentation and source code. Removed undocumented attribute &attr from source code. Removed internal attribute (&tracked) from documentation.
This commit is contained in:
parent
e8482fef99
commit
cb7fd7c87c
6 changed files with 4 additions and 23 deletions
|
@ -663,20 +663,12 @@ scripting language supports the following built-in attributes.
|
|||
``&synchronized`` variable is automatically propagated to all peers
|
||||
when it changes.
|
||||
|
||||
.. bro:attr:: &postprocessor
|
||||
|
||||
.. TODO: needs to be documented.
|
||||
|
||||
.. bro:attr:: &encrypt
|
||||
|
||||
Encrypts files right before writing them to disk.
|
||||
|
||||
.. TODO: needs to be documented in more detail.
|
||||
|
||||
.. bro:attr:: &match
|
||||
|
||||
.. TODO: needs to be documented.
|
||||
|
||||
.. bro:attr:: &raw_output
|
||||
|
||||
Opens a file in raw mode, i.e., non-ASCII characters are not
|
||||
|
@ -710,6 +702,3 @@ scripting language supports the following built-in attributes.
|
|||
|
||||
.. TODO: needs documented
|
||||
|
||||
.. bro:attr:: (&tracked)
|
||||
|
||||
.. TODO: needs documented or removed if it's not used anywhere.
|
||||
|
|
|
@ -14,8 +14,8 @@ const char* attr_name(attr_tag t)
|
|||
"&rotate_interval", "&rotate_size",
|
||||
"&add_func", "&delete_func", "&expire_func",
|
||||
"&read_expire", "&write_expire", "&create_expire",
|
||||
"&persistent", "&synchronized", "&postprocessor",
|
||||
"&encrypt", "&match",
|
||||
"&persistent", "&synchronized",
|
||||
"&encrypt",
|
||||
"&raw_output", "&mergeable", "&priority",
|
||||
"&group", "&log", "&error_handler", "&type_column",
|
||||
"(&tracked)",
|
||||
|
@ -337,11 +337,6 @@ void Attributes::CheckAttr(Attr* a)
|
|||
Error("&rotate_size only applicable to files");
|
||||
break;
|
||||
|
||||
case ATTR_POSTPROCESSOR:
|
||||
if ( type->Tag() != TYPE_FILE )
|
||||
Error("&postprocessor only applicable to files");
|
||||
break;
|
||||
|
||||
case ATTR_ENCRYPT:
|
||||
if ( type->Tag() != TYPE_FILE )
|
||||
Error("&encrypt only applicable to files");
|
||||
|
|
|
@ -25,9 +25,7 @@ typedef enum {
|
|||
ATTR_EXPIRE_CREATE,
|
||||
ATTR_PERSISTENT,
|
||||
ATTR_SYNCHRONIZED,
|
||||
ATTR_POSTPROCESSOR,
|
||||
ATTR_ENCRYPT,
|
||||
ATTR_MATCH,
|
||||
ATTR_RAW_OUTPUT,
|
||||
ATTR_MERGEABLE,
|
||||
ATTR_PRIORITY,
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
// Rotates the logfile. Returns rotate_info.
|
||||
RecordVal* Rotate();
|
||||
|
||||
// Set &rotate_interval, &rotate_size, &postprocessor,
|
||||
// Set &rotate_interval, &rotate_size,
|
||||
// and &raw_output attributes.
|
||||
void SetAttrs(Attributes* attrs);
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
%token TOK_STRING TOK_SUBNET TOK_SWITCH TOK_TABLE
|
||||
%token TOK_TIME TOK_TIMEOUT TOK_TIMER TOK_TYPE TOK_UNION TOK_VECTOR TOK_WHEN
|
||||
|
||||
%token TOK_ATTR_ADD_FUNC TOK_ATTR_ATTR TOK_ATTR_ENCRYPT TOK_ATTR_DEFAULT
|
||||
%token TOK_ATTR_ADD_FUNC TOK_ATTR_ENCRYPT TOK_ATTR_DEFAULT
|
||||
%token TOK_ATTR_OPTIONAL TOK_ATTR_REDEF TOK_ATTR_ROTATE_INTERVAL
|
||||
%token TOK_ATTR_ROTATE_SIZE TOK_ATTR_DEL_FUNC TOK_ATTR_EXPIRE_FUNC
|
||||
%token TOK_ATTR_EXPIRE_CREATE TOK_ATTR_EXPIRE_READ TOK_ATTR_EXPIRE_WRITE
|
||||
|
|
|
@ -319,7 +319,6 @@ vector return TOK_VECTOR;
|
|||
when return TOK_WHEN;
|
||||
|
||||
&add_func return TOK_ATTR_ADD_FUNC;
|
||||
&attr return TOK_ATTR_ATTR;
|
||||
&create_expire return TOK_ATTR_EXPIRE_CREATE;
|
||||
&default return TOK_ATTR_DEFAULT;
|
||||
&delete_func return TOK_ATTR_DEL_FUNC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue