From: Sergey BELASH Date: Mon, 17 Nov 2014 12:51:31 +0000 (+0300) Subject: Useless constructor stubs for SWIG removed X-Git-Tag: V_0.7.0_rc1~57^2~3^2~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bc91dea057824b77d28e26cb9cacb40f0c320dde;p=modules%2Fshaper.git Useless constructor stubs for SWIG removed --- diff --git a/src/ModelAPI/ModelAPI.i b/src/ModelAPI/ModelAPI.i index 4d0ebb256..cc31faa0f 100644 --- a/src/ModelAPI/ModelAPI.i +++ b/src/ModelAPI/ModelAPI.i @@ -86,10 +86,6 @@ %shared_ptr(ModelAPI_ResultBody) %shared_ptr(ModelAPI_ResultPart) -// Don't create default constructors -// %nodefaultctor ModelAPI_Plugin; -// %nodefaultctor ModelAPI_Session; - // all supported interfaces %include "GeomAPI_Interface.h" %include "GeomAPI_Shape.h" diff --git a/src/ModelAPI/ModelAPI_Plugin.h b/src/ModelAPI/ModelAPI_Plugin.h index 87406b422..04a997436 100644 --- a/src/ModelAPI/ModelAPI_Plugin.h +++ b/src/ModelAPI/ModelAPI_Plugin.h @@ -26,12 +26,6 @@ class MODELAPI_EXPORT ModelAPI_Plugin virtual ~ModelAPI_Plugin() { } - - protected: - /// Is needed for python wrapping by swig - ModelAPI_Plugin() - { - } }; #endif diff --git a/src/ModelAPI/ModelAPI_Session.cpp b/src/ModelAPI/ModelAPI_Session.cpp index db8a54ca2..ccb0c8f52 100644 --- a/src/ModelAPI/ModelAPI_Session.cpp +++ b/src/ModelAPI/ModelAPI_Session.cpp @@ -44,10 +44,6 @@ using namespace std; /// Manager that will be initialized from Model package, one per application boost::shared_ptr MY_MANAGER; -ModelAPI_Session::ModelAPI_Session() -{ -} - void ModelAPI_Session::setSession(boost::shared_ptr theManager) { MY_MANAGER = theManager; diff --git a/src/ModelAPI/ModelAPI_Session.h b/src/ModelAPI/ModelAPI_Session.h index b5e4d5d3b..d39378416 100644 --- a/src/ModelAPI/ModelAPI_Session.h +++ b/src/ModelAPI/ModelAPI_Session.h @@ -87,9 +87,6 @@ class MODELAPI_EXPORT ModelAPI_Session /// Returns the validators factory: the only one instance per application virtual ModelAPI_ValidatorsFactory* validators() = 0; - /// Is needed for python wrapping by swig, call Get to get an instance - ModelAPI_Session(); - /// To virtually destroy the fields of successors virtual ~ModelAPI_Session() {