diff options
Diffstat (limited to 'src/tools/perf/util/xyarray.c')
-rw-r--r-- | src/tools/perf/util/xyarray.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/tools/perf/util/xyarray.c b/src/tools/perf/util/xyarray.c deleted file mode 100644 index 22afbf6..0000000 --- a/src/tools/perf/util/xyarray.c +++ /dev/null @@ -1,20 +0,0 @@ -#include "xyarray.h" -#include "util.h" - -struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size) -{ - size_t row_size = ylen * entry_size; - struct xyarray *xy = zalloc(sizeof(*xy) + xlen * row_size); - - if (xy != NULL) { - xy->entry_size = entry_size; - xy->row_size = row_size; - } - - return xy; -} - -void xyarray__delete(struct xyarray *xy) -{ - free(xy); -} |