Remove extra debug messages in PythonAttributes.

This commit is contained in:
Jean-Paul Chaput 2022-10-13 10:54:11 +02:00
parent 7d31d6c457
commit 757284896c
3 changed files with 0 additions and 5 deletions

View File

@ -145,8 +145,6 @@ namespace Isobar {
void PyHolderProperty::_preDestroy () void PyHolderProperty::_preDestroy ()
{ {
cout.flush();
cerr << "Removing PyHolderProperty on " << getOwner() << endl;
Py_DECREF( _holder ); Py_DECREF( _holder );
Super::_preDestroy(); Super::_preDestroy();
} }
@ -264,13 +262,10 @@ namespace Isobar {
void PythonAttributes::disableAll ( std::string name ) void PythonAttributes::disableAll ( std::string name )
{ {
cout.flush();
cerr << "disableAll() name=" << name << endl;
if (allPyProperties.empty()) return; if (allPyProperties.empty()) return;
size_t removeds = 0; size_t removeds = 0;
for ( size_t i=0 ; i+removeds<allPyProperties.size() ; ) { for ( size_t i=0 ; i+removeds<allPyProperties.size() ; ) {
cerr << "i=" << i << endl;
if (not name.empty()) if (not name.empty())
allPyProperties[i]->delattr( name ); allPyProperties[i]->delattr( name );
if (name.empty() or (allPyProperties[i]->getDictSize() == 0)) { if (name.empty() or (allPyProperties[i]->getDictSize() == 0)) {