commit 0e557ca68220da222aa166102f7a383f31618d4d
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Jun 25 15:05:38 2025 +0200
Remove boost-related code that is actually not used
---
configure.ac | 11 -----------
development/cmake/configCompiler.h.cmake | 4 ----
development/cmake/configCompiler.h.msvc | 7 -------
src/boost.cpp | 9 ---------
src/client/boost.cpp | 9 ---------
src/frontends/tests/boost.cpp | 8 --------
src/support/tests/boost.cpp | 8 --------
src/tests/boost.cpp | 8 --------
src/tex2lyx/boost.cpp | 9 ---------
9 files changed, 73 deletions(-)
diff --git a/configure.ac b/configure.ac
index fdf724ab44..2b93b8b187 100644
--- a/configure.ac
+++ b/configure.ac
@@ -290,21 +290,10 @@ char * strerror(int n);
#define BOOST_ENABLE_ASSERT_HANDLER 1
#define BOOST_DISABLE_THREADS 1
-#define BOOST_NO_WREGEX 1
-#define BOOST_NO_WSTRING 1
#ifdef __CYGWIN__
# define _DEFAULT_SOURCE
# define NOMINMAX
-# define BOOST_POSIX 1
-# define BOOST_POSIX_API 1
-# define BOOST_POSIX_PATH 1
-#endif
-
-#ifdef __sparc__
-# ifndef __BIG_ENDIAN__
-# define __BIG_ENDIAN__ 1
-# endif
#endif
#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4
diff --git a/development/cmake/configCompiler.h.cmake
b/development/cmake/configCompiler.h.cmake
index 9fce467818..fcc16f6035 100644
--- a/development/cmake/configCompiler.h.cmake
+++ b/development/cmake/configCompiler.h.cmake
@@ -92,13 +92,9 @@
#define BOOST_ENABLE_ASSERT_HANDLER 1
//#define BOOST_DISABLE_THREADS 1
-#define BOOST_NO_WSTRING 1
#ifdef __CYGWIN__
# define _DEFAULT_SOURCE
-# define BOOST_POSIX 1
-# define BOOST_POSIX_API 1
-# define BOOST_POSIX_PATH 1
#endif
#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4
diff --git a/development/cmake/configCompiler.h.msvc
b/development/cmake/configCompiler.h.msvc
index 771286af9f..b4e97a450d 100644
--- a/development/cmake/configCompiler.h.msvc
+++ b/development/cmake/configCompiler.h.msvc
@@ -134,13 +134,6 @@
#define BOOST_ENABLE_ASSERT_HANDLER 1
#define BOOST_DISABLE_THREADS 1
-#define BOOST_NO_WSTRING 1
-
-#ifdef __CYGWIN__
-# define BOOST_POSIX 1
-# define BOOST_POSIX_API 1
-# define BOOST_POSIX_PATH 1
-#endif
#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4
# define USE_WCHAR_T
diff --git a/src/boost.cpp b/src/boost.cpp
index 646d4e4dfb..a07d443bbe 100644
--- a/src/boost.cpp
+++ b/src/boost.cpp
@@ -25,15 +25,6 @@ using lyx::lyxerr;
namespace boost {
-#ifndef BOOST_NO_EXCEPTIONS
-void throw_exception(exception const & e)
-{
- lyxerr << "Exception caught:\n" << e.what() << endl;
- LASSERT(false, /**/);
-}
-#endif
-
-
void assertion_failed(char const * expr, char const * function,
char const * file, long line)
{
diff --git a/src/client/boost.cpp b/src/client/boost.cpp
index d2cc50db98..f303a1a66f 100644
--- a/src/client/boost.cpp
+++ b/src/client/boost.cpp
@@ -23,15 +23,6 @@ using lyx::lyxerr;
namespace boost {
-#ifndef BOOST_NO_EXCEPTIONS
-void throw_exception(exception const & e)
-{
- lyxerr << "Exception caught:\n" << e.what() << endl;
- BOOST_ASSERT(false);
-}
-#endif
-
-
void assertion_failed(char const * expr, char const * function,
char const * file, long line)
{
diff --git a/src/frontends/tests/boost.cpp b/src/frontends/tests/boost.cpp
index 7230f5b003..3343df4aed 100644
--- a/src/frontends/tests/boost.cpp
+++ b/src/frontends/tests/boost.cpp
@@ -19,14 +19,6 @@ using namespace std;
namespace boost {
-#ifndef BOOST_NO_EXCEPTIONS
-void throw_exception(exception const & /*e*/)
-{
- BOOST_ASSERT(false);
-}
-#endif
-
-
void assertion_failed(char const * /*expr*/, char const * /*function*/,
char const * /*file*/, long /*line*/)
{
diff --git a/src/support/tests/boost.cpp b/src/support/tests/boost.cpp
index 7230f5b003..3343df4aed 100644
--- a/src/support/tests/boost.cpp
+++ b/src/support/tests/boost.cpp
@@ -19,14 +19,6 @@ using namespace std;
namespace boost {
-#ifndef BOOST_NO_EXCEPTIONS
-void throw_exception(exception const & /*e*/)
-{
- BOOST_ASSERT(false);
-}
-#endif
-
-
void assertion_failed(char const * /*expr*/, char const * /*function*/,
char const * /*file*/, long /*line*/)
{
diff --git a/src/tests/boost.cpp b/src/tests/boost.cpp
index 7230f5b003..3343df4aed 100644
--- a/src/tests/boost.cpp
+++ b/src/tests/boost.cpp
@@ -19,14 +19,6 @@ using namespace std;
namespace boost {
-#ifndef BOOST_NO_EXCEPTIONS
-void throw_exception(exception const & /*e*/)
-{
- BOOST_ASSERT(false);
-}
-#endif
-
-
void assertion_failed(char const * /*expr*/, char const * /*function*/,
char const * /*file*/, long /*line*/)
{
diff --git a/src/tex2lyx/boost.cpp b/src/tex2lyx/boost.cpp
index 41fef07b5a..1b360160a8 100644
--- a/src/tex2lyx/boost.cpp
+++ b/src/tex2lyx/boost.cpp
@@ -20,15 +20,6 @@ using namespace std;
namespace boost {
-#ifndef BOOST_NO_EXCEPTIONS
-void throw_exception(exception const & e)
-{
- cerr << "Exception caught:\n" << e.what() << endl;
- BOOST_ASSERT(false);
-}
-#endif
-
-
void assertion_failed(char const * expr, char const * function,
char const * file, long line)
{
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs