From 383f0ecbe1cc4239385824860a2616da0da5f42c Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Tue, 10 Feb 2004 23:06:23 +0000 Subject: [PATCH] move debug-only function into #ifdef DEBUG. r+sr=bzbarsky --- layout/generic/nsTextFrame.cpp | 4 ++++ layout/html/base/src/nsTextFrame.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index 67d2b026ba83..75926cb19843 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -768,7 +768,9 @@ public: PRUint32 aWordBufSize, PRBool aCanBreakBefore); +#ifdef DEBUG void ToCString(nsString& aBuf, PRInt32* aTotalContentLength) const; +#endif protected: virtual ~nsTextFrame(); @@ -5833,6 +5835,7 @@ nsTextFrame::ComputeWordFragmentDimensions(nsIPresContext* aPresContext, return dimensions; // 0 } +#ifdef DEBUG // Translate the mapped content into a string that's printable void nsTextFrame::ToCString(nsString& aBuf, PRInt32* aTotalContentLength) const @@ -5871,6 +5874,7 @@ nsTextFrame::ToCString(nsString& aBuf, PRInt32* aTotalContentLength) const } } } +#endif nsIAtom* nsTextFrame::GetType() const diff --git a/layout/html/base/src/nsTextFrame.cpp b/layout/html/base/src/nsTextFrame.cpp index 67d2b026ba83..75926cb19843 100644 --- a/layout/html/base/src/nsTextFrame.cpp +++ b/layout/html/base/src/nsTextFrame.cpp @@ -768,7 +768,9 @@ public: PRUint32 aWordBufSize, PRBool aCanBreakBefore); +#ifdef DEBUG void ToCString(nsString& aBuf, PRInt32* aTotalContentLength) const; +#endif protected: virtual ~nsTextFrame(); @@ -5833,6 +5835,7 @@ nsTextFrame::ComputeWordFragmentDimensions(nsIPresContext* aPresContext, return dimensions; // 0 } +#ifdef DEBUG // Translate the mapped content into a string that's printable void nsTextFrame::ToCString(nsString& aBuf, PRInt32* aTotalContentLength) const @@ -5871,6 +5874,7 @@ nsTextFrame::ToCString(nsString& aBuf, PRInt32* aTotalContentLength) const } } } +#endif nsIAtom* nsTextFrame::GetType() const