From 6c8cec3acf285d784b8ae593a9fe54d4ec25aa20 Mon Sep 17 00:00:00 2001 From: Johannes Markert Date: Tue, 23 Apr 2024 16:49:30 +0200 Subject: [PATCH] Deleted not needed fucntions. --- p4est/p4est_base.c | 69 ++-------------------------------------------- 1 file changed, 3 insertions(+), 66 deletions(-) diff --git a/p4est/p4est_base.c b/p4est/p4est_base.c index b0738fc36e..3af8a66e1a 100644 --- a/p4est/p4est_base.c +++ b/p4est/p4est_base.c @@ -24,52 +24,9 @@ #include -int p4est_initialized = 0; - -void -p4est_init (sc_log_handler_t log_handler, int log_threshold) -{ - int w; - - p4est_package_id = sc_package_register (log_handler, log_threshold, - "p4est", "A forest of octrees"); - - w = 24; - P4EST_GLOBAL_ESSENTIALF ("This is %s\n", P4EST_PACKAGE_STRING); - P4EST_GLOBAL_PRODUCTIONF ("%-*s %s\n", w, "CPP", P4EST_CPP); - P4EST_GLOBAL_PRODUCTIONF ("%-*s %s\n", w, "CPPFLAGS", P4EST_CPPFLAGS); - P4EST_GLOBAL_PRODUCTIONF ("%-*s %s\n", w, "CC", P4EST_CC); -#if 0 - P4EST_GLOBAL_PRODUCTIONF ("%-*s %s\n", w, "C_VERSION", P4EST_C_VERSION); -#endif - P4EST_GLOBAL_PRODUCTIONF ("%-*s %s\n", w, "CFLAGS", P4EST_CFLAGS); - P4EST_GLOBAL_PRODUCTIONF ("%-*s %s\n", w, "LDFLAGS", P4EST_LDFLAGS); - P4EST_GLOBAL_PRODUCTIONF ("%-*s %s\n", w, "LIBS", P4EST_LIBS); - - p4est_initialized = 1; -} - -int -p4est_is_initialized (void) -{ - return p4est_initialized; -} - -int -p4est_have_zlib (void) -{ -#ifndef P4EST_HAVE_ZLIB - return 0; -#else - return sc_have_zlib (); -#endif -} - -int -p4est_get_package_id (void) -{ - return p4est_package_id; -} +/* + * Note, dispensible function signatures and includes were deleted. The t8code authors. + */ #ifndef __cplusplus #undef P4EST_GLOBAL_LOGF @@ -142,23 +99,3 @@ P4EST_LOG_IMP (PRODUCTION, PRODUCTION) P4EST_LOG_IMP (ESSENTIAL, ESSENTIAL) P4EST_LOG_IMP (LERROR, ERROR) /* *INDENT-ON* */ - -const char * -p4est_version (void) -{ - return P4EST_VERSION; -} - -int -p4est_version_major (void) -{ - /* In rare cases SC_VERSION_MINOR may be a non-numerical string */ - return sc_atoi (SC_TOSTRING (P4EST_VERSION_MAJOR)); -} - -int -p4est_version_minor (void) -{ - /* In rare cases SC_VERSION_MAJOR may be a non-numerical string */ - return sc_atoi (SC_TOSTRING (P4EST_VERSION_MINOR)); -}