removed the (useless) template parameter to Per[XXX]DeleteAttribute(mesh,name)

This commit is contained in:
ganovelli 2009-03-20 10:22:16 +00:00
parent 60c50bcf48
commit 917343b0f5
1 changed files with 4 additions and 8 deletions

View File

@ -765,14 +765,13 @@ public:
assert(0); assert(0);
} }
template <class ATTR_TYPE >
static static
void DeletePerVertexAttribute( MeshType & m, std::string name){ void DeletePerVertexAttribute( MeshType & m, std::string name){
HandlesIterator i; HandlesIterator i;
HandlesWrapper h1; h1._name = name; HandlesWrapper h1; h1._name = name;
i = m.vert_attr.find(h1); i = m.vert_attr.find(h1);
assert(i!=m.vert_attr.end()); assert(i!=m.vert_attr.end());
delete ((SimpleTempData<VertContainer,ATTR_TYPE>*)(*i)._handle); delete ((SimpleTempDataBase<VertContainer>*)(*i)._handle);
m.vert_attr.erase(i); m.vert_attr.erase(i);
} }
@ -838,14 +837,13 @@ public:
assert(0); assert(0);
} }
template <class ATTR_TYPE >
static static
void DeletePerEdgeAttribute( MeshType & m, std::string name){ void DeletePerEdgeAttribute( MeshType & m, std::string name){
HandlesIterator i; HandlesIterator i;
HandlesWrapper h1; h1._name = name; HandlesWrapper h1; h1._name = name;
i = m.edge_attr.find(h1); i = m.edge_attr.find(h1);
assert(i!=m.edge_attr.end()); assert(i!=m.edge_attr.end());
delete ((SimpleTempData<EdgeContainer,ATTR_TYPE>*)(*i)._handle); delete ((SimpleTempDataBase<EdgeContainer>*)(*i)._handle);
m.edge_attr.erase(i); m.edge_attr.erase(i);
} }
@ -911,14 +909,13 @@ public:
assert(0); assert(0);
} }
template <class ATTR_TYPE >
static static
void DeletePerFaceAttribute( MeshType & m, std::string name){ void DeletePerFaceAttribute( MeshType & m, std::string name){
HandlesIterator i; HandlesIterator i;
HandlesWrapper h1; h1._name = name; HandlesWrapper h1; h1._name = name;
i = m.face_attr.find(h1); i = m.face_attr.find(h1);
assert(i!=m.face_attr.end()); assert(i!=m.face_attr.end());
delete ((SimpleTempData<FaceContainer,ATTR_TYPE>*)(*i)._handle); delete ((SimpleTempDataBase<FaceContainer>*)(*i)._handle);
m.face_attr.erase(i); m.face_attr.erase(i);
} }
@ -977,14 +974,13 @@ public:
assert(0); assert(0);
} }
template <class ATTR_TYPE >
static static
void DeletePerMeshAttribute( MeshType & m, std::string name){ void DeletePerMeshAttribute( MeshType & m, std::string name){
HandlesIterator i; HandlesIterator i;
HandlesWrapper h1; h1._name = name; HandlesWrapper h1; h1._name = name;
i = m.mesh_attr.find(h1); i = m.mesh_attr.find(h1);
assert(i!=m.mesh_attr.end()); assert(i!=m.mesh_attr.end());
delete ((Attribute<ATTR_TYPE> *)(*i)._handle); delete ((AttributeBase *)(*i)._handle);
m.mesh_attr.erase(i); m.mesh_attr.erase(i);
} }
}; // end class }; // end class