0029470: Samples - eliminate references to deprecated Local Context from MFC sample
[occt.git] / src / XSDRAWSTLVRML / XSDRAWSTLVRML.cxx
index fe5fe0e..fe80118 100644 (file)
@@ -531,13 +531,6 @@ static Standard_Integer mdisplay
         di << "The context is null\n";
       else
       {
-        Standard_DISABLE_DEPRECATION_WARNINGS
-        if (aContext->HasOpenedContext())
-        {
-          aContext->CloseLocalContext();
-        }
-        Standard_ENABLE_DEPRECATION_WARNINGS
-
         aContext->Display (aMesh, Standard_True);
       }
     }
@@ -561,13 +554,6 @@ static Standard_Integer merase
         di << "The context is null\n";
       else
       {
-        Standard_DISABLE_DEPRECATION_WARNINGS
-        if (aContext->HasOpenedContext())
-        {
-          aContext->CloseLocalContext();
-        }
-        Standard_ENABLE_DEPRECATION_WARNINGS
-
         aContext->Erase (aMesh, Standard_True);
       }
     }