Bug 1245421: Remove dead function CoercesToDouble; r?h4writer draft
authorBenjamin Bouvier <benj@benj.me>
Wed, 03 Feb 2016 09:56:21 +0100
changeset 328388 971c1d43c329292f73ddd884e940fef022c91ba0
parent 328387 113fc521664e72b6c2fbf92152551e7e3920c4d0
child 513820 c8f92103be1ce32e2c0bdef7e599d5406a299a36
push id10363
push userbenj@benj.me
push dateWed, 03 Feb 2016 08:57:48 +0000
reviewersh4writer
bugs1245421
milestone47.0a1
Bug 1245421: Remove dead function CoercesToDouble; r?h4writer
js/src/jit/TypePolicy.h
--- a/js/src/jit/TypePolicy.h
+++ b/js/src/jit/TypePolicy.h
@@ -520,24 +520,16 @@ class ClampPolicy final : public TypePol
 
 class FilterTypeSetPolicy final : public TypePolicy
 {
   public:
     EMPTY_DATA_;
     virtual bool adjustInputs(TempAllocator& alloc, MInstruction* ins) override;
 };
 
-static inline bool
-CoercesToDouble(MIRType type)
-{
-    if (type == MIRType_Undefined || IsFloatingPointType(type))
-        return true;
-    return false;
-}
-
 #undef SPECIALIZATION_DATA_
 #undef INHERIT_DATA_
 #undef EMPTY_DATA_
 
 } // namespace jit
 } // namespace js
 
 #endif /* jit_TypePolicy_h */