perf tools: Remove unused xyarray.c as it was moved to tools/lib/perf
authorIan Rogers <irogers@google.com>
Fri, 12 Feb 2021 04:38:03 +0000 (20:38 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Feb 2021 20:25:17 +0000 (17:25 -0300)
Migrated to libperf in:

  4b247fa7314ce482 ("libperf: Adopt xyarray class from perf")

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20210212043803.365993-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/xyarray.c [deleted file]

diff --git a/tools/perf/util/xyarray.c b/tools/perf/util/xyarray.c
deleted file mode 100644 (file)
index 86889eb..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#include "xyarray.h"
-#include <stdlib.h>
-#include <string.h>
-#include <linux/zalloc.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;
-               xy->entries    = xlen * ylen;
-               xy->max_x      = xlen;
-               xy->max_y      = ylen;
-       }
-
-       return xy;
-}
-
-void xyarray__reset(struct xyarray *xy)
-{
-       size_t n = xy->entries * xy->entry_size;
-
-       memset(xy->contents, 0, n);
-}
-
-void xyarray__delete(struct xyarray *xy)
-{
-       free(xy);
-}