From 8cd96c6b443e7673bfb3b73ee79f53e99bafa7ce Mon Sep 17 00:00:00 2001
From: Julian Smart <julian@anthemion.co.uk>
Date: Mon, 6 Feb 2006 17:37:26 +0000
Subject: [PATCH] m_border and accessors not used

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/sashwin.tex    |  2 ++
 include/wx/generic/sashwin.h | 13 ++++++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/docs/latex/wx/sashwin.tex b/docs/latex/wx/sashwin.tex
index bff4b340e3..2dea05e9b6 100644
--- a/docs/latex/wx/sashwin.tex
+++ b/docs/latex/wx/sashwin.tex
@@ -140,6 +140,7 @@ Gets the minimum window size in the y direction.
 \constfunc{bool}{HasBorder}{\param{wxSashEdgePosition }{edge}}
 
 Returns true if the sash has a border, false otherwise.
+This function is obsolete since the sash border property is unused.
 
 \wxheading{Parameters}
 
@@ -194,6 +195,7 @@ Call this function to make a sash visible or invisible on a particular edge.
 \func{void}{SetSashBorder}{\param{wxSashEdgePosition }{edge}, \param{bool}{ hasBorder}}
 
 Call this function to give the sash a border, or remove the border.
+This function is obsolete since the sash border property is unused.
 
 \wxheading{Parameters}
 
diff --git a/include/wx/generic/sashwin.h b/include/wx/generic/sashwin.h
index 53bc2f4664..f223891efa 100644
--- a/include/wx/generic/sashwin.h
+++ b/include/wx/generic/sashwin.h
@@ -39,10 +39,17 @@ enum wxSashEdgePosition {
 class WXDLLIMPEXP_ADV wxSashEdge
 {
 public:
-    wxSashEdge() { m_show = false; m_border = false; m_margin = 0; }
+    wxSashEdge()
+    { m_show = false;
+#if WXWIN_COMPATIBILITY_2_6
+      m_border = false;
+#endif
+      m_margin = 0; }
 
     bool    m_show;     // Is the sash showing?
+#if WXWIN_COMPATIBILITY_2_6
     bool    m_border;   // Do we draw a border?
+#endif
     int     m_margin;   // The margin size
 };
 
@@ -91,11 +98,15 @@ public:
     // Get whether there's a sash in this position
     bool GetSashVisible(wxSashEdgePosition edge) const { return m_sashes[edge].m_show; }
 
+#if WXWIN_COMPATIBILITY_2_6
     // Set whether there's a border in this position
+    // This value is unused in wxSashWindow.
     void SetSashBorder(wxSashEdgePosition edge, bool border) { m_sashes[edge].m_border = border; }
 
     // Get whether there's a border in this position
+    // This value is unused in wxSashWindow.
     bool HasBorder(wxSashEdgePosition edge) const { return m_sashes[edge].m_border; }
+#endif
 
     // Get border size
     int GetEdgeMargin(wxSashEdgePosition edge) const { return m_sashes[edge].m_margin; }
-- 
2.50.0

