Salome HOME
Remove workaround for loading SketchPlugin on Debian 6.0.
authorazv <azv@opencascade.com>
Tue, 10 Jan 2017 08:07:07 +0000 (11:07 +0300)
committerazv <azv@opencascade.com>
Tue, 10 Jan 2017 08:08:27 +0000 (11:08 +0300)
Debian 6.0 support has been stopped.

src/Model/Model_Session.cpp
src/Model/Model_Session.h
src/ModelAPI/ModelAPI_Session.h
src/PythonAPI/model/sketcher/__init__.py

index 5bb981ea3b907559f97d3f920e5dbec30fde4a5d..9d13485f3d8a1fed152f50aef9875fab175c676a 100644 (file)
@@ -473,22 +473,3 @@ int Model_Session::transactionID()
 {
   return ROOT_DOC->transactionID();
 }
-
-void Model_Session::forceLoadPlugin(const std::string& thePluginName)
-{
-  // load all information about plugins, features and attributes
-  LoadPluginsInfo();
-
-  // store name of current plugin for further restoring,
-  // because forceLoadPlugin may be called while loading another plugin
-  std::string aCurrentPluginName = myCurrentPluginName;
-
-  myCurrentPluginName = thePluginName;
-  if (myPluginObjs.find(myCurrentPluginName) == myPluginObjs.end()) {
-    // load plugin library if not yet done
-    Config_ModuleReader::loadPlugin(myCurrentPluginName);
-  }
-
-  // restore current plugin
-  myCurrentPluginName = aCurrentPluginName;
-}
index d9f9f2c2d0b63d450257463beeaf9d9be0f4deb2..2afa84a26b292305e6aa4c143f7bd792028cf110 100644 (file)
@@ -128,9 +128,6 @@ class Model_Session : public ModelAPI_Session, public Events_Listener
   /// Returns the global identifier of the current transaction (needed for the update algo)
   MODEL_EXPORT virtual int transactionID();
 
-  /// Load plugin by its name
-  MODEL_EXPORT virtual void forceLoadPlugin(const std::string& thePluginName);
-
  protected:
   /// Loads (if not done yet) the information about the features and plugins
   void LoadPluginsInfo();
index cc6987bd3653898a99c96d804776d1465d37fdff..40984fb03469e9981ef4db83520a3a21f43b5cb3 100644 (file)
@@ -115,9 +115,6 @@ class MODELAPI_EXPORT ModelAPI_Session
   /// Returns the global identifier of the current transaction (needed for the update algo)
   virtual int transactionID() = 0;
 
-  /// Load plugin by its name
-  virtual void forceLoadPlugin(const std::string& thePluginName) = 0;
-
  protected:
   /// Sets the session interface implementation (once per application launch)
   static void setSession(std::shared_ptr<ModelAPI_Session> theManager);
index 9231f5d32d2bdf16520e76494d2f734a8723da2d..7aa9934344907a8229d5091b0bcc5fc7edc7680f 100644 (file)
@@ -1,16 +1,5 @@
 """Package for Sketch plugin for the Parametric Geometry API of the Modeler.
 """
 
-# DEBIAN 6.0 WORKAROUND START
-"""
-  Following code is used to support Debian 6.0.
-  It is kept, because SketchPlugin should be loaded before SketchAPI is first used.
-  Otherwise, the runtime error will be generated while some static inline methods are broken.
-""" 
-from ModelAPI import ModelAPI_Session
-aSession = ModelAPI_Session.get()
-aSession.forceLoadPlugin("SketchPlugin")
-# DEBIAN 6.0 WORKAROUND FINISH
-
 from SketchAPI import addSketch
 from tools import addPolyline, addPolygon