Skip to content
Snippets Groups Projects
Commit 46979a1c authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Remove deprecated AllocEnvMemory and FreeEnvMemory

parent 45995f0c
No related branches found
No related tags found
1 merge request!233Remove code deprecated in 2.9 or earlier
......@@ -5,6 +5,9 @@ SPDX-License-Identifier: LGPL-2.1-or-later
# dune-uggrid 2.10 (unreleased)
* Remove deprecated `AllocEnvMemory` and `FreeEnvMemory`. They were
wrappers of standard `malloc` and `free`.
# dune-uggrid 2.9 (2022-11-25)
* The `dune-uggrid` module does not set the preprocessor flag `HAVE_UG` anymore.
......
......@@ -568,38 +568,6 @@ ENVITEM * NS_PREFIX SearchEnv (const char *name, const char *where, INT type, IN
return(SearchTree(name,type,dirtype));
}
/****************************************************************************/
/** \brief For backward compatibility: Allocate memory from environment heap
* @param size - number of bytes to be allocated
\deprecated Simply a wrapper for malloc()
@return <ul>
Pointer to allocated memory
*/
/****************************************************************************/
void * NS_PREFIX AllocEnvMemory (INT size)
{
return malloc(size);
}
/****************************************************************************/
/** \brief For backward compatibility: Deallocate memory from environment heap
* @param buffer - pointer to buffer previously allocated
\deprecated Simply a wrapper for free()
*/
/****************************************************************************/
void NS_PREFIX FreeEnvMemory (void *buffer)
{
free(buffer);
}
/****************************************************************************/
/** \brief For backward compatibility: Print size and used of environment heap to string
......
......@@ -199,12 +199,6 @@ INT MoveEnvItem (ENVITEM *item, ENVDIR *oldDir, ENVDIR *newDir
/* search the environment for an item */
ENVITEM *SearchEnv (const char *name, const char *where, INT type, INT dirtype);
/* allocate memory from the environment heap */
void *AllocEnvMemory (INT size);
/* deallocate memory from the environment heap */
void FreeEnvMemory (void *buffer);
/* print used and size of environment heap */
void EnvHeapInfo (char *s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment