Skip to content

Commit

Permalink
numastat: Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Jan 6, 2024
1 parent 757f285 commit 4bf586a
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions numastat.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,6 @@ static inline void set_col_flag(vtab_p table, int col, int flag)
table->col_flags[col] |= (uint8_t)flag;
}

static inline void clear_row_flag(vtab_p table, int row, int flag)
{
table->row_flags[row] &= (uint8_t)~flag;
}

static inline void clear_col_flag(vtab_p table, int col, int flag)
{
table->col_flags[col] &= (uint8_t)~flag;
}

static inline int test_row_flag(vtab_p table, int row, int flag)
{
return ((table->row_flags[row] & (uint8_t)flag) != 0);
Expand Down Expand Up @@ -318,18 +308,6 @@ static inline void set_cell_flag(vtab_p table, int row, int col, int flag)
c_ptr->flags |= (uint32_t)flag;
}

static inline void clear_cell_flag(vtab_p table, int row, int col, int flag)
{
cell_p c_ptr = GET_CELL_PTR(row, col);
c_ptr->flags &= (uint32_t)~flag;
}

static inline int test_cell_flag(vtab_p table, int row, int col, int flag)
{
cell_p c_ptr = GET_CELL_PTR(row, col);
return ((c_ptr->flags & (uint32_t)flag) != 0);
}

static inline void string_assign(vtab_p table, int row, int col, char *s)
{
cell_p c_ptr = GET_CELL_PTR(row, col);
Expand All @@ -351,33 +329,13 @@ static inline void double_assign(vtab_p table, int row, int col, double d)
c_ptr->d = d;
}

static inline void long_assign(vtab_p table, int row, int col, int64_t l)
{
cell_p c_ptr = GET_CELL_PTR(row, col);
c_ptr->type = CELL_TYPE_LONG;
c_ptr->l = l;
}

static inline void double_addto(vtab_p table, int row, int col, double d)
{
cell_p c_ptr = GET_CELL_PTR(row, col);
c_ptr->type = CELL_TYPE_DOUBLE;
c_ptr->d += d;
}

static inline void long_addto(vtab_p table, int row, int col, int64_t l)
{
cell_p c_ptr = GET_CELL_PTR(row, col);
c_ptr->type = CELL_TYPE_LONG;
c_ptr->l += l;
}

static inline void clear_assign(vtab_p table, int row, int col)
{
cell_p c_ptr = GET_CELL_PTR(row, col);
memset(c_ptr, 0, sizeof(cell_t));
}

static void zero_table_data(vtab_p table, int type)
{
// Sets data area of table to zeros of specified type
Expand Down

0 comments on commit 4bf586a

Please sign in to comment.