pw-cli: remove unused INDENT macro

This commit is contained in:
Barnabás Pőcze 2024-07-30 20:24:46 +02:00
parent b1443185ea
commit 05ec64623a

View file

@ -10,9 +10,6 @@
#include <signal.h>
#include <string.h>
#include <ctype.h>
#if !defined(__FreeBSD__) && !defined(__MidnightBSD__)
#include <alloca.h>
#endif
#include <getopt.h>
#include <fnmatch.h>
#ifdef HAVE_READLINE
@ -2162,15 +2159,6 @@ children_of(struct remote_data *rd, uint32_t parent_id,
return count;
}
#define INDENT(_level) \
({ \
int __level = (_level); \
char *_indent = alloca(__level + 1); \
memset(_indent, '\t', __level); \
_indent[__level] = '\0'; \
(const char *)_indent; \
})
static bool parse(struct data *data, char *buf, char **error)
{
char *a[2];