From d1a3190f43ac4227908e0f73f0dd98e8e4f6efa6 Mon Sep 17 00:00:00 2001 From: Martin Date: Mon, 30 Nov 2015 09:26:02 +0100 Subject: [PATCH] reduced includes by means of static code analysis --- MultiObjectPropertyModel.cc | 3 --- ObjectListItemModel.cc | 2 -- PropertyModelFactory.cc | 6 ------ PropertyNameListModel.cc | 2 -- PropertyVisPlugin.cc | 18 ------------------ PropertyVisualizer.cc | 4 ---- SingleObjectPropertyModel.cc | 2 -- 7 files changed, 37 deletions(-) diff --git a/MultiObjectPropertyModel.cc b/MultiObjectPropertyModel.cc index b5d9b26..bf60a98 100644 --- a/MultiObjectPropertyModel.cc +++ b/MultiObjectPropertyModel.cc @@ -52,9 +52,6 @@ #include "PropertyModelFactory.hh" #include "OpenMesh/OMPropertyModel.hh" #include "OpenVolumeMesh/OVMPropertyModel.hh" -#include "OpenVolumeMesh/Mesh/HexahedralMesh.hh" - -#include "Utils.hh" MultiObjectPropertyModel::MultiObjectPropertyModel(const QStringList& res, QObject *parent) : PropertyModel(parent), restriction(res), datatypes(supportedDataTypes()), widget(0) diff --git a/ObjectListItemModel.cc b/ObjectListItemModel.cc index 4c8151c..a1d131b 100644 --- a/ObjectListItemModel.cc +++ b/ObjectListItemModel.cc @@ -49,8 +49,6 @@ #include "ObjectListItemModel.hh" -#include - #include ObjectListItemModel::ObjectListItemModel() { diff --git a/PropertyModelFactory.cc b/PropertyModelFactory.cc index 130c0b1..0e8a94f 100644 --- a/PropertyModelFactory.cc +++ b/PropertyModelFactory.cc @@ -49,23 +49,17 @@ #include "PropertyModelFactory.hh" -#include - #include "MultiObjectPropertyModel.hh" #include "OpenMesh/OMPropertyModel.hh" -#include -#include #ifdef ENABLE_OPENVOLUMEMESH_SUPPORT #include "OpenVolumeMesh/OVMPropertyModel.hh" #endif /* ENABLE_OPENVOLUMEMESH_SUPPORT */ #ifdef ENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT - #include #endif /* ENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT */ #ifdef ENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT - #include #endif /* ENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT */ diff --git a/PropertyNameListModel.cc b/PropertyNameListModel.cc index b7e0509..3759caa 100644 --- a/PropertyNameListModel.cc +++ b/PropertyNameListModel.cc @@ -52,9 +52,7 @@ #include #include -#include #include -#include const PropertyNameListModel::TypeInfoWrapper PropertyNameListModel::proptype_bool = PropertyNameListModel::TypeInfoWrapper(typeid(OpenMesh::PropertyT), "bool"); diff --git a/PropertyVisPlugin.cc b/PropertyVisPlugin.cc index 8e07563..1e25858 100644 --- a/PropertyVisPlugin.cc +++ b/PropertyVisPlugin.cc @@ -57,29 +57,11 @@ #include "PropertyVisPlugin.hh" -#include - -#include -#include - -#include -#include -#include -#include - -#include -#include - #include "PropertyModelFactory.hh" -#include -#include - #ifdef ENABLE_OPENVOLUMEMESH_POLYHEDRAL_SUPPORT - #include #endif #ifdef ENABLE_OPENVOLUMEMESH_HEXAHEDRAL_SUPPORT - #include #endif //== IMPLEMENTATION ========================================================== diff --git a/PropertyVisualizer.cc b/PropertyVisualizer.cc index 60a4814..5f320b1 100644 --- a/PropertyVisualizer.cc +++ b/PropertyVisualizer.cc @@ -49,10 +49,6 @@ #include "PropertyVisualizer.hh" -#include - -#include - /*! \brief Visualizes the property * * This method should be implemented by a subclass that specializes on visualizing diff --git a/SingleObjectPropertyModel.cc b/SingleObjectPropertyModel.cc index 572e91d..b5c84ec 100644 --- a/SingleObjectPropertyModel.cc +++ b/SingleObjectPropertyModel.cc @@ -49,8 +49,6 @@ #include "SingleObjectPropertyModel.hh" -#include - SingleObjectPropertyModel::SingleObjectPropertyModel(QObject *parent) : PropertyModel(parent), widgets(0), -- GitLab