diff --git a/src/blackmisc/pq/physicalquantity.cpp b/src/blackmisc/pq/physicalquantity.cpp index 77bf11f64..764646cdf 100644 --- a/src/blackmisc/pq/physicalquantity.cpp +++ b/src/blackmisc/pq/physicalquantity.cpp @@ -486,14 +486,6 @@ namespace BlackMisc template int CPhysicalQuantity::compareImpl(const PQ &a, const PQ &b) { - // fetch "null" as we do not know how expensive it is - const bool aIsNull = a.isNull(); - const bool bIsNull = b.isNull(); - - if (aIsNull && bIsNull) { return 0; } - if (aIsNull > bIsNull) { return -1; } - if (aIsNull < bIsNull) { return 1; } - if (a < b) { return -1; } else if (a > b) { return 1; } else { return 0; }