X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..1d5fda5dc6f875a20210cd6d7f6b5b794519bd52:/include/wx/event.h

diff --git a/include/wx/event.h b/include/wx/event.h
index ed8f827f9c..469d6534c9 100644
--- a/include/wx/event.h
+++ b/include/wx/event.h
@@ -2285,8 +2285,10 @@ public:
     // Clear table
     void Clear();
 
+#if defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING 
     // Clear all tables
     static void ClearAll();
+#endif // __WXDEBUG__ && wxUSE_MEMORY_TRACING
 
 protected:
     // Init the hash table with the entries of the static event table.