Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openairinterface-6g
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
openairinterface-6g
Commits
3f9dcee5
Commit
3f9dcee5
authored
Sep 02, 2025
by
Laurent THOMAS
Committed by
calvin_peyron
Sep 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove a dead function
parent
7d70617a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
48 deletions
+0
-48
common/utils/mem/memory.c
common/utils/mem/memory.c
+0
-46
common/utils/mem/oai_memory.h
common/utils/mem/oai_memory.h
+0
-2
No files found.
common/utils/mem/memory.c
View file @
3f9dcee5
...
@@ -25,52 +25,6 @@
...
@@ -25,52 +25,6 @@
#include "common/utils/mem/oai_memory.h"
#include "common/utils/mem/oai_memory.h"
#include "common/utils/LOG/log.h"
#include "common/utils/LOG/log.h"
/****************************************************************************
** **
** Name: memory_get_path() **
** **
** Description: Gets the absolute path of the file where non-volatile **
** data are located **
** **
** Inputs: dirname: The directory where data file is located **
** filename: The name of the data file **
** Others: None **
** **
** Outputs: None **
** Return: The absolute path of the non-volatile data **
** file. The returned value is a dynamically **
** allocated octet string that needs to be **
** freed after usage. **
** Others: None **
** **
***************************************************************************/
char
*
memory_get_path
(
const
char
*
dirname
,
const
char
*
filename
)
{
/* Get non-volatile data directory */
const
char
*
path
=
getenv
(
dirname
);
if
(
path
==
NULL
)
{
path
=
getenv
(
DEFAULT_NAS_PATH
);
}
if
(
path
==
NULL
)
{
path
=
"."
;
}
/* Append non-volatile data file name */
size_t
size
=
strlen
(
path
)
+
strlen
(
filename
)
+
1
;
char
*
data_filename
=
(
char
*
)
malloc
(
size
+
1
);
if
(
data_filename
!=
NULL
)
{
if
(
size
!=
sprintf
(
data_filename
,
"%s/%s"
,
path
,
filename
))
{
free
(
data_filename
);
return
NULL
;
}
}
return
data_filename
;
}
char
*
memory_get_path_from_ueid
(
const
char
*
dirname
,
const
char
*
filename
,
int
ueid
)
char
*
memory_get_path_from_ueid
(
const
char
*
dirname
,
const
char
*
filename
,
int
ueid
)
{
{
/* Get non-volatile data directory */
/* Get non-volatile data directory */
...
...
common/utils/mem/oai_memory.h
View file @
3f9dcee5
...
@@ -35,8 +35,6 @@ typedef unsigned char uint8_t;
...
@@ -35,8 +35,6 @@ typedef unsigned char uint8_t;
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
char
*
memory_get_path
(
const
char
*
dirname
,
const
char
*
filename
);
char
*
memory_get_path_from_ueid
(
const
char
*
dirname
,
const
char
*
filename
,
int
ueid
);
char
*
memory_get_path_from_ueid
(
const
char
*
dirname
,
const
char
*
filename
,
int
ueid
);
int
memory_read
(
const
char
*
datafile
,
void
*
data
,
size_t
size
);
int
memory_read
(
const
char
*
datafile
,
void
*
data
,
size_t
size
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment