Commit 82114f67 authored by Andrew Heather's avatar Andrew Heather
Browse files

Revert "ENH: updates to Xfer after commit 49331bf9"

This reverts commit 4530a473.
parent fc3dd68a
...@@ -83,7 +83,7 @@ PtrList<List<Type> > readFields ...@@ -83,7 +83,7 @@ PtrList<List<Type> > readFields
{ {
Info<< " reading field " << obj.name() << endl; Info<< " reading field " << obj.name() << endl;
IOField<Type> newField(obj); IOField<Type> newField(obj);
values.set(fieldI++, new List<Type>(newField.xferList())); values.set(fieldI++, new List<Type>(newField.xfer()));
break; break;
} }
} }
......
...@@ -164,7 +164,7 @@ Field<Type>::Field(const Xfer<List<Type> >& f) ...@@ -164,7 +164,7 @@ Field<Type>::Field(const Xfer<List<Type> >& f)
template<class Type> template<class Type>
Field<Type>::Field(const Xfer<Field<Type> >& f) Field<Type>::Field(const Xfer<Field<Type> >& f)
: :
List<Type>(f().xferList()) List<Type>(f)
{} {}
...@@ -585,13 +585,6 @@ Xfer<Field<Type> > Field<Type>::xfer() ...@@ -585,13 +585,6 @@ Xfer<Field<Type> > Field<Type>::xfer()
} }
template<class Type>
Xfer<List<Type> > Field<Type>::xferList()
{
return List<Type>::xfer();
}
template<class Type> template<class Type>
void Field<Type>::writeEntry(const word& keyword, Ostream& os) const void Field<Type>::writeEntry(const word& keyword, Ostream& os) const
{ {
......
...@@ -305,9 +305,6 @@ public: ...@@ -305,9 +305,6 @@ public:
//- Transfer contents to the Xfer container //- Transfer contents to the Xfer container
Xfer<Field<Type> > xfer(); Xfer<Field<Type> > xfer();
//- Transfer contents to a List Xfer container
Xfer<List<Type> > xferList();
//- Write the field as a dictionary entry //- Write the field as a dictionary entry
void writeEntry(const word& keyword, Ostream& os) const; void writeEntry(const word& keyword, Ostream& os) const;
......
...@@ -117,7 +117,7 @@ bool Foam::fileFormats::STARCDCore::readPoints ...@@ -117,7 +117,7 @@ bool Foam::fileFormats::STARCDCore::readPoints
// reuse memory if possible // reuse memory if possible
DynamicList<point> dynPoints(points.xferList()); DynamicList<point> dynPoints(points.xfer());
DynamicList<label> dynPointId(ids.xfer()); // STAR-CD index of points DynamicList<label> dynPointId(ids.xfer()); // STAR-CD index of points
dynPoints.clear(); dynPoints.clear();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment