aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-03-22 00:59:24 -0400
committerDavid Robillard <d@drobilla.net>2025-03-22 00:59:24 -0400
commit0dc7c1e05b2e2c0d4cb036cd19211329a3a4234c (patch)
tree1fbe323fb53a18feb307e0d0444d1cf5d3c004e7
parent59dadc9a439ffa4f9548f5a2a25076c33def7cec (diff)
downloadserd-0dc7c1e05b2e2c0d4cb036cd19211329a3a4234c.tar.gz
serd-0dc7c1e05b2e2c0d4cb036cd19211329a3a4234c.tar.bz2
serd-0dc7c1e05b2e2c0d4cb036cd19211329a3a4234c.zip
Remove dead code
-rw-r--r--src/node.c8
-rw-r--r--src/node.h36
2 files changed, 6 insertions, 38 deletions
diff --git a/src/node.c b/src/node.c
index d925fed1..b7bbfd1c 100644
--- a/src/node.c
+++ b/src/node.c
@@ -1,8 +1,6 @@
// Copyright 2011-2023 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
-#include "node.h"
-
#include "base64.h"
#include "string_utils.h"
@@ -17,6 +15,12 @@
#include <stdlib.h>
#include <string.h>
+struct SerdNodeImpl {
+ size_t n_bytes; /**< Size in bytes (not including null) */
+ SerdNodeFlags flags; /**< Node flags (e.g. string properties) */
+ SerdType type; /**< Node type */
+};
+
static size_t
serd_uri_string_length(const SerdURI* const uri)
{
diff --git a/src/node.h b/src/node.h
deleted file mode 100644
index ce53a1be..00000000
--- a/src/node.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2011-2023 David Robillard <d@drobilla.net>
-// SPDX-License-Identifier: ISC
-
-#ifndef SERD_SRC_NODE_H
-#define SERD_SRC_NODE_H
-
-#include <serd/serd.h>
-
-#include <stddef.h>
-
-struct SerdNodeImpl {
- size_t n_bytes; /**< Size in bytes (not including null) */
- SerdNodeFlags flags; /**< Node flags (e.g. string properties) */
- SerdType type; /**< Node type */
-};
-
-static inline char* SERD_NONNULL
-serd_node_buffer(SerdNode* const SERD_NONNULL node)
-{
- return (char*)(node + 1);
-}
-
-static inline const char* SERD_NONNULL
-serd_node_buffer_c(const SerdNode* const SERD_NONNULL node)
-{
- return (const char*)(node + 1);
-}
-
-SerdNode* SERD_ALLOCATED
-serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdType type);
-
-void
-serd_node_set(SerdNode* SERD_NULLABLE* SERD_NONNULL dst,
- const SerdNode* SERD_NULLABLE src);
-
-#endif // SERD_SRC_NODE_H