summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2019-10-18 11:42:18 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2019-10-18 11:42:18 +0200
commite8991b23483959f285e53b56c42d46af15ce24ef (patch)
treeed439908badfeb8ba954d541528050d9e3510b2e
parent006fa35af1f005a857fb1bf9bd0ef266cb81fcc5 (diff)
downloadlibxslt-e8991b23483959f285e53b56c42d46af15ce24ef.tar.gz
Remove stubs when compiling without debugger or profiler
They're not needed and confuse the documentation generator.
-rw-r--r--libxslt/xsltutils.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/libxslt/xsltutils.c b/libxslt/xsltutils.c
index 231652fc..94097b9d 100644
--- a/libxslt/xsltutils.c
+++ b/libxslt/xsltutils.c
@@ -2277,27 +2277,6 @@ xsltGetProfileInformation(xsltTransformContextPtr ctxt)
return ret;
}
-#else /* WITH_PROFILER */
-
-void
-xsltCalibrateAdjust(long delta ATTRIBUTE_UNUSED) {
-}
-
-long
-xsltTimestamp(void) {
- return(0);
-}
-
-void
-xsltSaveProfiling(xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED,
- FILE *output ATTRIBUTE_UNUSED) {
-}
-
-xmlDocPtr
-xsltGetProfileInformation(xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED) {
- return(NULL);
-}
-
#endif /* WITH_PROFILER */
/************************************************************************
@@ -2494,38 +2473,5 @@ xslDropCall(void)
xsltDebuggerCurrentCallbacks.drop();
}
-#else /* WITH_DEBUGGER */
-
-void
-xsltSetDebuggerStatus(int value) {
- if (value != XSLT_DEBUG_NONE) {
- xsltGenericError(xsltGenericErrorContext,
- "xsltSetDebuggerStatus: libxslt compiled without debugger\n");
- }
-}
-
-int
-xsltSetDebuggerCallbacks(int no ATTRIBUTE_UNUSED,
- void *block ATTRIBUTE_UNUSED) {
- return(-1);
-}
-
-void
-xslHandleDebugger(xmlNodePtr cur ATTRIBUTE_UNUSED,
- xmlNodePtr node ATTRIBUTE_UNUSED,
- xsltTemplatePtr templ ATTRIBUTE_UNUSED,
- xsltTransformContextPtr ctxt ATTRIBUTE_UNUSED) {
-}
-
-int
-xslAddCall(xsltTemplatePtr templ ATTRIBUTE_UNUSED,
- xmlNodePtr source ATTRIBUTE_UNUSED) {
- return(-1);
-}
-
-void
-xslDropCall(void) {
-}
-
#endif /* WITH_DEBUGGER */