Skip to content
Snippets Groups Projects
Commit 601883b6 authored by Simon Rose's avatar Simon Rose
Browse files

Remove `foreachLoadedLib`

This was a function from the original require, but it wasn't even
ever used there...
parent 9d34dce1
No related branches found
No related tags found
No related merge requests found
...@@ -517,22 +517,6 @@ static void registerExternalModules() { ...@@ -517,22 +517,6 @@ static void registerExternalModules() {
static void registerExternalModules() { ; } static void registerExternalModules() { ; }
#endif #endif
size_t foreachLoadedLib(size_t (*func)(const char *name, const char *version,
const char *path, void *arg),
void *arg) {
moduleitem *m;
int result;
for (m = loadedModules; m; m = m->next) {
const char *name = m->content;
const char *version = name + strlen(name) + 1;
const char *path = version + strlen(version) + 1;
result = func(name, version, path, arg);
if (result) return result;
}
return 0;
}
const char *getLibVersion(const char *libname) { const char *getLibVersion(const char *libname) {
moduleitem *m; moduleitem *m;
......
...@@ -14,9 +14,6 @@ extern "C" { ...@@ -14,9 +14,6 @@ extern "C" {
#endif // __GNUC__ #endif // __GNUC__
int require(const char *libname, const char *version); int require(const char *libname, const char *version);
size_t foreachLoadedLib(size_t (*func)(const char *name, const char *version,
const char *path, void *arg),
void *arg);
const char *getLibVersion(const char *libname); const char *getLibVersion(const char *libname);
const char *getLibLocation(const char *libname); const char *getLibLocation(const char *libname);
int libversionShow(const char *outfile); int libversionShow(const char *outfile);
......
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