[libxslt] Remove stubs when compiling without debugger or profiler
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Remove stubs when compiling without debugger or profiler
- Date: Fri, 18 Oct 2019 10:05:23 +0000 (UTC)
commit e8991b23483959f285e53b56c42d46af15ce24ef
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Fri Oct 18 11:42:18 2019 +0200
Remove stubs when compiling without debugger or profiler
They're not needed and confuse the documentation generator.
libxslt/xsltutils.c | 54 -----------------------------------------------------
1 file changed, 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]