Skip to content
Snippets Groups Projects
Commit b97f2c22 authored by Oliver Sander's avatar Oliver Sander Committed by Ansgar Burchardt
Browse files

Remove Format::MaxType

parent f31a8879
No related branches found
No related tags found
1 merge request!176Rip out the Format data structure and large parts of the UG3 algebra
...@@ -251,7 +251,6 @@ std::unique_ptr<FORMAT> NS_DIM_PREFIX CreateFormat () ...@@ -251,7 +251,6 @@ std::unique_ptr<FORMAT> NS_DIM_PREFIX CreateFormat ()
FMT_MAX_PART(fmt) = MAX(FMT_MAX_PART(fmt),i); FMT_MAX_PART(fmt) = MAX(FMT_MAX_PART(fmt),i);
MaxType = MAX(MaxType,po2t[i][j]); MaxType = MAX(MaxType,po2t[i][j]);
} }
FMT_MAX_TYPE(fmt) = MaxType;
return fmt; return fmt;
} }
......
...@@ -393,10 +393,6 @@ struct format { ...@@ -393,10 +393,6 @@ struct format {
/** \brief largest part used */ /** \brief largest part used */
INT MaxPart; INT MaxPart;
/* both derived from po2t */ /* both derived from po2t */
/** \brief largest type used */
INT MaxType;
/* derived from VectorSizes */
}; };
typedef struct { typedef struct {
...@@ -2946,7 +2942,6 @@ grid::dddContext() ...@@ -2946,7 +2942,6 @@ grid::dddContext()
#define FMT_TYPE_USES_OBJ(f,t,o) ((f)->t2o[o] & (1<<o)) #define FMT_TYPE_USES_OBJ(f,t,o) ((f)->t2o[o] & (1<<o))
#define FMT_USES_OBJ(f,o) ((f)->OTypeUsed[o]) #define FMT_USES_OBJ(f,o) ((f)->OTypeUsed[o])
#define FMT_MAX_PART(f) ((f)->MaxPart) #define FMT_MAX_PART(f) ((f)->MaxPart)
#define FMT_MAX_TYPE(f) ((f)->MaxType)
#define FMT_N2T(f,c) (((c)<FROM_VTNAME) ? NOVTYPE : ((c)>TO_VTNAME) ? NOVTYPE : (f)->n2t[(c)-FROM_VTNAME]) #define FMT_N2T(f,c) (((c)<FROM_VTNAME) ? NOVTYPE : ((c)>TO_VTNAME) ? NOVTYPE : (f)->n2t[(c)-FROM_VTNAME])
#define FMT_SET_N2T(f,c,t) ((f)->n2t[(c)-FROM_VTNAME] = t) #define FMT_SET_N2T(f,c,t) ((f)->n2t[(c)-FROM_VTNAME] = t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment