diff --git a/src/blackmisc/mathvector3dbase.cpp b/src/blackmisc/mathvector3dbase.cpp index 98b74b0da..abff71395 100644 --- a/src/blackmisc/mathvector3dbase.cpp +++ b/src/blackmisc/mathvector3dbase.cpp @@ -216,36 +216,6 @@ namespace BlackMisc this->m_i = jsonArray.at(2).toDouble(); } - /* - * To JSON - */ - template QJsonObject CMatrixBase::toJson() const - { - QJsonObject json; - QJsonArray jsonArray; - foreach(double v, this->toList()) - { - jsonArray.append(QJsonValue(v)); - } - json.insert("matrix", QJsonValue(jsonArray)); - return json; - } - - /* - * From Json - */ - template void CMatrixBase::convertFromJson(const QJsonObject &json) - { - QJsonArray jsonArray = json.value("matrix").toArray(); - QList list; - for (auto i = jsonArray.begin(); i != jsonArray.end(); ++i) - { - list.append((*i).toDouble()); - } - this->fromList(list); - } - - // see here for the reason of thess forward instantiations // http://www.parashift.com/c++-faq/separate-template-class-defn-from-decl.html template class CVector3DBase;