cleanup: remove ARRAY_SIZE macro from header

It is only used in a single source file, so no point having
it in a (non-generic) header.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-11-12 09:07:46 +01:00 committed by bstoeger
parent 59d678b5b1
commit aa34afc3f7
2 changed files with 2 additions and 2 deletions

View file

@ -18,8 +18,6 @@ extern "C" {
#define CLOUD_HOST_PATTERN "ssrf-cloud-..\\.subsurface-divelog\\.org"
#define CLOUD_HOST_GENERIC "cloud.subsurface-divelog.org"
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
enum remote_transport { RT_LOCAL, RT_HTTPS, RT_SSH, RT_OTHER };
struct git_oid;

View file

@ -30,6 +30,8 @@
#include "tag.h"
#include "subsurface-time.h"
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
const char *saved_git_id = NULL;
struct git_parser_state {