Remove unused code into GUI
This commit is contained in:
@@ -360,14 +360,6 @@ Application::Application(bool GUIenabled)
|
||||
throw Base::RuntimeError("Invalid system settings");
|
||||
}
|
||||
#endif
|
||||
#if 0 // QuantitySpinBox and InputField try to handle the group separator now
|
||||
// http://forum.freecadweb.org/viewtopic.php?f=10&t=6910
|
||||
// A workaround is to disable the group separator for double-to-string conversion, i.e.
|
||||
// setting the flag 'OmitGroupSeparator'.
|
||||
QLocale loc;
|
||||
loc.setNumberOptions(QLocale::OmitGroupSeparator);
|
||||
QLocale::setDefault(loc);
|
||||
#endif
|
||||
|
||||
// setting up Python binding
|
||||
Base::PyGILStateLocker lock;
|
||||
@@ -500,25 +492,8 @@ Application::~Application()
|
||||
WidgetFactorySupplier::destruct();
|
||||
BitmapFactoryInst::destruct();
|
||||
|
||||
#if 0
|
||||
// we must run the garbage collector before shutting down the SoDB
|
||||
// subsystem because we may reference some class objects of them in Python
|
||||
Base::Interpreter().cleanupSWIG("SoBase *");
|
||||
// finish also Inventor subsystem
|
||||
SoFCDB::finish();
|
||||
|
||||
#if (COIN_MAJOR_VERSION >= 2) && (COIN_MINOR_VERSION >= 4)
|
||||
SoDB::finish();
|
||||
#elif (COIN_MAJOR_VERSION >= 3)
|
||||
SoDB::finish();
|
||||
#else
|
||||
SoDB::cleanup();
|
||||
#endif
|
||||
#endif
|
||||
{
|
||||
Base::PyGILStateLocker lock;
|
||||
Py_DECREF(_pcWorkbenchDictionary);
|
||||
}
|
||||
|
||||
// save macros
|
||||
try {
|
||||
@@ -527,7 +502,6 @@ Application::~Application()
|
||||
catch (const Base::Exception& e) {
|
||||
std::cerr << "Saving macros failed: " << e.what() << std::endl;
|
||||
}
|
||||
//App::GetApplication().Detach(this);
|
||||
|
||||
delete d;
|
||||
Instance = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user