Skip to content

Commit 0bc077e

Browse files
committed
Remove useless functions
These functions are either unused or perform no action. They were needed in the old system of separated processes, but now each probe has its own functions.
1 parent 21b8f02 commit 0bc077e

File tree

6 files changed

+0
-170
lines changed

6 files changed

+0
-170
lines changed

src/OVAL/probes/probe/fini.c

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/OVAL/probes/probe/init.c

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/OVAL/probes/probe/offline_mode.c

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/OVAL/probes/probe/preload.c

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/OVAL/probes/probe/probe_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ void *probe_common_main(void *arg)
276276
fail(errno, "chdir", __LINE__ -1);
277277
}
278278

279-
probe_preload();
280279
if (chroot(rootdir) != 0) {
281280
fail(errno, "chroot", __LINE__ - 1);
282281
}

src/OVAL/probes/public/probe-api.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,6 @@ OSCAP_API void probe_tfc54behaviors_canonicalize(SEXP_t **behaviors);
440440
#define PROBECMD_OBJ_EVAL 2 /**< Object eval command code */
441441
#define PROBECMD_RESET 3 /**< Reset command code */
442442

443-
444-
OSCAP_API int probe_offline_mode_supported(void);
445-
OSCAP_API void probe_preload(void);
446-
OSCAP_API void *probe_init(void) __attribute__ ((unused));
447-
OSCAP_API void probe_fini(void *) __attribute__ ((unused));
448-
449443
typedef struct probe_ctx probe_ctx;
450444

451445
OSCAP_API bool probe_item_filtered(const SEXP_t *item, const SEXP_t *filters);

0 commit comments

Comments
 (0)