This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git


The following commit(s) were added to refs/heads/main by this push:
     new f6fbfc95e Remove remaining unused types
f6fbfc95e is described below

commit f6fbfc95e92e714f2daeecba8546d09fe541e70c
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Aug 27 12:16:30 2026 +0100

    Remove remaining unused types
---
 native/include/tcn.h | 46 ----------------------------------------------
 1 file changed, 46 deletions(-)

diff --git a/native/include/tcn.h b/native/include/tcn.h
index ff66fce4b..daab6e2da 100644
--- a/native/include/tcn.h
+++ b/native/include/tcn.h
@@ -111,52 +111,6 @@
 
 #define TCN_GETNET_METHOD(FN)  method_##FN
 
-#define TCN_SOCKET_UNKNOWN  0
-#define TCN_SOCKET_APR      1
-#define TCN_SOCKET_SSL      2
-#define TCN_SOCKET_UNIX     3
-#define TCN_SOCKET_NTPIPE   4
-
-#define TCN_SOCKET_GET_POOL 0
-#define TCN_SOCKET_GET_IMPL 1
-#define TCN_SOCKET_GET_APRS 2
-#define TCN_SOCKET_GET_TYPE 3
-
-typedef struct {
-    int type;
-    apr_status_t (*cleanup)(void *);
-    apr_status_t (APR_THREAD_FUNC *close) (apr_socket_t *);
-    apr_status_t (APR_THREAD_FUNC *shutdown) (apr_socket_t *, 
apr_shutdown_how_e);
-    apr_status_t (APR_THREAD_FUNC *opt_get)(apr_socket_t *, apr_int32_t, 
apr_int32_t *);
-    apr_status_t (APR_THREAD_FUNC *opt_set)(apr_socket_t *, apr_int32_t, 
apr_int32_t);
-    apr_status_t (APR_THREAD_FUNC *timeout_get)(apr_socket_t *, 
apr_interval_time_t *);
-    apr_status_t (APR_THREAD_FUNC *timeout_set)(apr_socket_t *, 
apr_interval_time_t);
-    apr_status_t (APR_THREAD_FUNC *send) (apr_socket_t *, const char *, 
apr_size_t *);
-    apr_status_t (APR_THREAD_FUNC *sendv)(apr_socket_t *, const struct iovec 
*, apr_int32_t, apr_size_t *);
-    apr_status_t (APR_THREAD_FUNC *recv) (apr_socket_t *, char *, apr_size_t 
*);
-} tcn_nlayer_t;
-
-typedef struct tcn_socket_t tcn_socket_t;
-typedef struct tcn_pfde_t   tcn_pfde_t;
-
-struct tcn_pfde_t {
-    APR_RING_ENTRY(tcn_pfde_t) link;
-    apr_pollfd_t fd;
-};
-
-struct tcn_socket_t {
-    apr_pool_t   *pool;
-    apr_pool_t   *child;
-    apr_socket_t *sock;
-    void         *opaque;
-    char         *jsbbuff;
-    char         *jrbbuff;
-    tcn_nlayer_t *net;
-    tcn_pfde_t   *pe;
-    apr_time_t          last_active;
-    apr_interval_time_t timeout;
-};
-
 /* Private helper functions */
 void            tcn_Throw(JNIEnv *, const char *, ...);
 void            tcn_ThrowException(JNIEnv *, const char *);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to