Commit 09136d04 authored by Andrew J. Burns (Cont's avatar Andrew J. Burns (Cont

removed unreachable code

parent d663dd9d
......@@ -236,7 +236,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
// where there is a mixed type of Char and UChar
// The resulting type should be a Short
return Int16();
break;
}
case 3:
// Short
......@@ -247,7 +246,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
// Char/UChar and Short
// In all of these cases the result shoule be a Short
return Int16();
break;
}
case 4:
// UShort
......@@ -256,7 +254,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
// When mixing UShort with a signed type that has a lower precision
// the resulting type should be an int
return Int32();
break;
}
else if (type2Name.compare("UChar") == 0 ||
type2Name.compare("UShort") == 0) {
......@@ -268,7 +265,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
else {
return Int32();
}
break;
}
case 5:
// Int
......@@ -284,7 +280,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
else {
return Int64();
}
break;
}
if (type2Name.compare("Int") == 0) {
if (type2->getElementSize() == 4) {
......@@ -293,7 +288,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
else {
return Int64();
}
break;
}
case 6:
// UInt
......@@ -310,7 +304,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
else {
return Int64();
}
break;
}
else if (type2Name.compare("UInt") == 0) {
if (firstIsSigned) {
......@@ -319,11 +312,9 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
else {
return UInt32();
}
break;
}
else if (type2Name.compare("Int") == 0) {
return Int64();
break;
}
case 7:
// Float
......@@ -333,7 +324,6 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
// String is the only type that has priority over a float
// This case occurs when type1 is a float
return type1;
break;
}
else if (type2Name.compare("UInt") == 0) {
return Float64();
......@@ -347,13 +337,11 @@ XdmfArrayType::comparePrecision(shared_ptr<const XdmfArrayType> type1,
else {
return type2;
}
break;
}
case 8:
// String
// String has priority over everything
return String();
break;
default:
break;
}
......
Markdown is supported
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