mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025765: Coding rules - clean up code from obsolete macro checks
Unused code paths (including definition of these macros and meaningless comments) were eliminated.
This commit is contained in:
@@ -51,8 +51,6 @@ IMPLEMENT_DOMSTRING (LastRealArrIndex, "lastRA")
|
||||
IMPLEMENT_DOMSTRING (ExtString, "string")
|
||||
IMPLEMENT_DOMSTRING (Value, "value")
|
||||
|
||||
#define OCC6010
|
||||
|
||||
#ifdef WNT
|
||||
#define EXCEPTION ...
|
||||
#else
|
||||
@@ -747,14 +745,10 @@ void XmlMDataStd_NamedDataDriver::Paste(const Handle(TDF_Attribute)& theSource,
|
||||
TCollection_AsciiString aValueStr2;
|
||||
Standard_Integer j = anArr1.Lower();
|
||||
for(;;) {
|
||||
#ifndef OCC6010
|
||||
aValueStr2 += TCollection_AsciiString(anArr1.Value(j));
|
||||
#else
|
||||
char aValueChar[32];
|
||||
Sprintf(aValueChar, "%.15g", anArr1.Value(j));
|
||||
TCollection_AsciiString aValueStr(aValueChar);
|
||||
aValueStr2 += aValueStr;
|
||||
#endif
|
||||
if (j >= anArr1.Upper()) break;
|
||||
aValueStr2 += ' ';
|
||||
j++;
|
||||
|
@@ -15,8 +15,6 @@
|
||||
|
||||
//AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
|
||||
|
||||
#define OCC6010 // vro 09.06.2004
|
||||
|
||||
#include <stdio.h>
|
||||
#include <XmlMDataStd_RealDriver.ixx>
|
||||
#include <TDataStd_Real.hxx>
|
||||
@@ -76,13 +74,9 @@ void XmlMDataStd_RealDriver::Paste (const Handle(TDF_Attribute)& theSource,
|
||||
XmlObjMgt_SRelocationTable& ) const
|
||||
{
|
||||
Handle(TDataStd_Real) anInt = Handle(TDataStd_Real)::DownCast(theSource);
|
||||
#ifndef OCC6010
|
||||
TCollection_AsciiString aValueStr (anInt->Get());
|
||||
#else
|
||||
char aValueChar[32];
|
||||
Sprintf(aValueChar, "%.17g", anInt->Get());
|
||||
TCollection_AsciiString aValueStr(aValueChar);
|
||||
#endif
|
||||
// No occurrence of '&', '<' and other irregular XML characters
|
||||
XmlObjMgt::SetStringValue (theTarget, aValueStr.ToCString(), Standard_True);
|
||||
}
|
||||
|
Reference in New Issue
Block a user