Skip to content

Commit

Permalink
Remove obsolete field types table (moved to linux-audit-parser)
Browse files Browse the repository at this point in the history
  • Loading branch information
hillu committed Jan 21, 2025
1 parent d2c5dee commit 392daee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
17 changes: 0 additions & 17 deletions src/const.rs.in
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
use lazy_static::lazy_static;
use std::collections::HashMap;

#[derive(PartialEq,Eq,Clone,Copy)]
pub enum FieldType {
Encoded,
Numeric,
NumericDec,
NumericHex,
NumericOct,
}

lazy_static! {
pub static ref FIELD_TYPES: HashMap<&'static[u8],FieldType> = {
let els: &[(&str, FieldType)] = &[ /* @FIELD_TYPES@ */ ];
let mut hm = HashMap::with_capacity(els.len());
for (name, typ) in els {
hm.insert(name.as_bytes(), *typ);
}
hm
};
pub static ref SYSCALL_NAMES: HashMap<&'static str, HashMap<u32, &'static str>> = {
let mut hm = HashMap::new();
/* @SYSCALL_BUILD@ */
Expand Down
1 change: 0 additions & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ lazy_static! {
}

pub fn initialize() {
lazy_static::initialize(&FIELD_TYPES);
lazy_static::initialize(&SYSCALL_NAMES);
lazy_static::initialize(&ARCH_IDS);
}

0 comments on commit 392daee

Please sign in to comment.