build: boost: Drop boost <= 1.41 dependent-code branches

This commit is contained in:
Priit Laes
2020-10-07 23:40:42 +03:00
committed by wwmayer
parent 5f92194a8c
commit 8244ad4ba2

View File

@@ -54,9 +54,7 @@
# include <boost/thread/thread.hpp>
# include <boost/thread/mutex.hpp>
# include <boost/thread/condition_variable.hpp>
# if BOOST_VERSION >= 104100
# include <boost/thread/future.hpp>
# endif
# include <boost/bind/bind.hpp>
# include <boost/shared_ptr.hpp>
#endif
@@ -629,7 +627,6 @@ CmdSandboxMeshLoaderBoost::CmdSandboxMeshLoaderBoost()
void CmdSandboxMeshLoaderBoost::activated(int)
{
# if BOOST_VERSION >= 104100
// use current path as default
QStringList filter;
filter << QObject::tr("All Mesh Files (*.stl *.ast *.bms *.obj)");
@@ -655,16 +652,11 @@ void CmdSandboxMeshLoaderBoost::activated(int)
Mesh::Feature* mesh = static_cast<Mesh::Feature*>(doc->addObject("Mesh::Feature","Mesh"));
mesh->Mesh.setValuePtr((Mesh::MeshObject*)fi.get());
mesh->purgeTouched();
#endif
}
bool CmdSandboxMeshLoaderBoost::isActive(void)
{
# if BOOST_VERSION >= 104100
return hasActiveDocument();
#else
return false;
#endif
}
DEF_STD_CMD_A(CmdSandboxMeshLoaderFuture)