Skip to content

Commit 8176031

Browse files
committed
Remove some commented out code containing SCLstring
1 parent c474742 commit 8176031

File tree

3 files changed

+0
-71
lines changed

3 files changed

+0
-71
lines changed

src/clstepcore/ExpDict.cc

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -903,18 +903,6 @@ Inverse_attribute::AttrExprDefStr(std::string & s) const
903903
s.append(_inverted_attr_id);
904904
return const_cast<char *>(s.c_str());
905905
}
906-
/*
907-
const char *
908-
Inverse_attribute::GenerateExpress (SCLstring &buf) const
909-
{
910-
char tmp[BUFSIZ];
911-
SCLstring sstr;
912-
buf = AttrExprDefStr(sstr);
913-
buf.Append(";\n");
914-
915-
return buf.chars();
916-
}
917-
*/
918906

919907
///////////////////////////////////////////////////////////////////////////////
920908
// EnumDescriptor functions
@@ -1149,7 +1137,6 @@ EntityDescriptor::GenerateExpress (std::string &buf) const
11491137
/////////
11501138

11511139
InverseAItr iai(_inverseAttr);
1152-
// const char * AttrTypeName( SCLstring &buf, const char *schnm =NULL ) const;
11531140

11541141
iai.ResetItr();
11551142
const Inverse_attribute *ia = iai.NextInverse_attribute();
@@ -1883,30 +1870,6 @@ TypeDescriptor::TypeString(std::string & s) const
18831870
return const_cast<char *>(s.c_str());
18841871

18851872
}
1886-
/* this works
1887-
if( ( (ReferentType() != 0) || (ReferentEntity() != 0) ) && Name())
1888-
{
1889-
strcat(tStr, "TYPE ");
1890-
strcat(tStr, Name());
1891-
strcat(tStr, " = ");
1892-
}
1893-
if(Description())
1894-
strcat(tStr, Description());
1895-
if(ReferentType())
1896-
{
1897-
strcat(tStr, " -- ");
1898-
SCLstring tmp;
1899-
strcat(tStr, ReferentType()->TypeString(tmp));
1900-
}
1901-
else if(ReferentEntity())
1902-
{
1903-
strcat(tStr, " -- ");
1904-
strcat(tStr, "Entity: ");
1905-
strcat(tStr, ReferentEntity()->Name());
1906-
}
1907-
return tStr;
1908-
}
1909-
*/
19101873

19111874
const TypeDescriptor *
19121875
TypeDescriptor::IsA (const TypeDescriptor * other) const {

src/clstepcore/sdaiSelect.cc

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,6 @@ const TypeDescriptor *
7676
SCLP23(Select)::CanBe (const char * n) const
7777
{
7878
return _type -> CanBe (n);
79-
/*
80-
const TypeDescLinkNode * tdn =
81-
(const TypeDescLinkNode *) _type -> GetElements ().GetHead ();
82-
const TypeDescriptor *td = tdn -> TypeDesc ();
83-
84-
SCLstring tmp1;
85-
SCLstring tmp2;
86-
87-
while (tdn) {
88-
td = tdn -> TypeDesc ();
89-
if (strcmp( (char *)StrToUpper( n, tmp1 ),
90-
(char *)StrToUpper( td->Name(), tmp2 ) ))
91-
;
92-
else
93-
return td; // they are the same
94-
tdn = (TypeDescLinkNode *) (tdn -> NextNode ());
95-
}
96-
return 0;
97-
*/
9879
}
9980

10081

@@ -647,20 +628,6 @@ SCLP23(Select)::STEPwrite(ostream& out, const char *currSch) const
647628
out << "ERROR Should not have gone here in SCLP23(Select)::STEPwrite()"
648629
<< endl;
649630
}
650-
/*
651-
if (IsUnique(ValueType()) || (ValueType() == ENTITY_TYPE))
652-
STEPwrite_content( out );
653-
else
654-
STEPwrite_verbose(out);
655-
*/
656-
/*
657-
{
658-
SCLstring tmp;
659-
out << StrToUpper( CurrentUnderlyingType()->Name(), tmp ) << "(";
660-
STEPwrite_content (out);
661-
out << ")";
662-
}
663-
*/
664631
}
665632

666633
void

src/clutils/Str.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <stdio.h> // added to have the definition for BUFSIZE
2929
#include <stdlib.h>
3030
#include <string.h>
31-
#include <scl_string.h>
3231
#include <errordesc.h>
3332

3433
char ToLower (const char c);

0 commit comments

Comments
 (0)