From b0b480a5395254ea77a18aeb15ba3233171a5459 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 9 Jul 2020 12:48:02 +0200 Subject: [PATCH] drop some debugs --- libnymea-core/integrations/python/pything.h | 1 - libnymea-core/integrations/python/pyutils.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/libnymea-core/integrations/python/pything.h b/libnymea-core/integrations/python/pything.h index 18688eef..96bec099 100644 --- a/libnymea-core/integrations/python/pything.h +++ b/libnymea-core/integrations/python/pything.h @@ -115,7 +115,6 @@ static void PyThing_setThing(PyThing *self, Thing *thing) PyObject *pyStateTypeId = PyDict_GetItemString(pyState, "stateTypeId"); StateTypeId stid = StateTypeId(PyUnicode_AsUTF8AndSize(pyStateTypeId, nullptr)); if (stid == stateTypeId) { - qWarning() << "Updating state" << stateTypeId << value; pyState = Py_BuildValue("{s:s, s:O}", "stateTypeId", stateTypeId.toString().toUtf8().data(), "value", QVariantToPyObject(value)); diff --git a/libnymea-core/integrations/python/pyutils.h b/libnymea-core/integrations/python/pyutils.h index 0e0ef81a..103e9d9b 100644 --- a/libnymea-core/integrations/python/pyutils.h +++ b/libnymea-core/integrations/python/pyutils.h @@ -45,8 +45,6 @@ PyObject *QVariantToPyObject(const QVariant &value) QVariant PyObjectToQVariant(PyObject *pyObject) { - qWarning() << "**************** type" << pyObject->ob_type->tp_name; - if (qstrcmp(pyObject->ob_type->tp_name, "int") == 0) { return QVariant(PyLong_AsLongLong(pyObject)); }