summaryrefslogtreecommitdiffstats
path: root/src/isode/psap/pe_extract.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/isode/psap/pe_extract.c')
-rw-r--r--src/isode/psap/pe_extract.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/isode/psap/pe_extract.c b/src/isode/psap/pe_extract.c
deleted file mode 100644
index 584ed2e3a5..0000000000
--- a/src/isode/psap/pe_extract.c
+++ /dev/null
@@ -1,55 +0,0 @@
-/* pe_extract.c - extract a PE */
-
-/*
- * isode/psap/pe_extract.c
- */
-
-/*
- * NOTICE
- *
- * Acquisition, use, and distribution of this module and related
- * materials are subject to the restrictions of a license agreement.
- * Consult the Preface in the User's Manual for the full terms of
- * this agreement.
- *
- */
-
-
-/* LINTLIBRARY */
-
-#include <stdio.h>
-#include "psap.h"
-
-/* */
-
-/* assumes that q appears at most once directly under p... */
-
-int pe_extract (pe, r)
-PE pe,
- r;
-{
- register PE *p,
- q;
-
- switch (pe -> pe_form) {
- case PE_FORM_PRIM:
- case PE_FORM_ICONS:
- break;
-
- case PE_FORM_CONS:
- for (p = &pe -> pe_cons; q = *p; p = &q -> pe_next)
- if (q == r) {
- (*p) = q -> pe_next;
- q -> pe_next = NULLPE;
- if (r->pe_refcnt > 0)
- r->pe_refcnt--;
- return 1;
- }
- else
- if (pe_extract (q, r))
- return 1;
- break;
- }
-
- return 0;
-}