0025812: Replace dynamic loading mechanism of OCAF persistence with dynamic-link one
[occt.git] / src / PCDM / PCDM.cxx
index 468de93..db24d1b 100644 (file)
 #include <TCollection_ExtendedString.hxx>
 #include <UTL.hxx>
 
-//=======================================================================
-//function : StorageDriver
-//purpose  : gets   in the  EuclidDesktop   resource  the plugin
-//           identifier of the driver plugs the driver.
-//=======================================================================
-Handle(PCDM_StorageDriver) PCDM::StorageDriver(const Handle(CDM_Document)& aDocument) {
-  
-  if(!PCDM::FindStorageDriver(aDocument)) {    
-    Standard_SStream aMsg; aMsg << "could not find the storage driver plugin resource for the format: " << aDocument->StorageFormat()<<(char) 0;
-    Standard_NoSuchObject::Raise(aMsg);
-  }  
-  //return Handle(PCDM_StorageDriver)::DownCast(Plugin::Load(aDocument->StoragePlugin()));
-  Handle(PCDM_StorageDriver) DRIVER = 
-    Handle(PCDM_StorageDriver)::DownCast(Plugin::Load(aDocument->StoragePlugin()));
-  if (!DRIVER.IsNull()) DRIVER->SetFormat(aDocument->StorageFormat());
-  return DRIVER;
-}
-
-//=======================================================================
-//function : FindStorageDriver
-//purpose  : 
-//=======================================================================
-
-Standard_Boolean PCDM::FindStorageDriver(const Handle(CDM_Document)& aDocument) {
-  
-  return aDocument->FindStoragePlugin();
-}
-
 //=======================================================================
 //function : FileDriverType
 //purpose  :