message: [XLA] Simplify function in literal.cc.  NFC
diff: @@ -1628,7 +1628,6 @@ bool LiteralBase::IsAllFloat(float value) const {
  return true;
  }
  - auto piece_is_all = [&]() {
  switch (shape().element_type()) {
  case F32:
  return AllElementsEqualValue<float>(piece.data<float>(), value);
  @@ -1643,11 +1642,6 @@ bool LiteralBase::IsAllFloat(float value) const {
  default:
  return false;
  }
  - };
  - if (!piece_is_all()) {
  - return false;
  - }
  - return true;
  });
  }
  