Remove unused JS::Value::get{Int32,Double}Ref member functions. No bug, r=me as trivial

--HG--
extra : rebase_source : 3c32ceef0657739f07994929d3cdd3c32df7cf55
This commit is contained in:
Jeff Walden 2018-04-05 20:45:57 -07:00
parent 14488e954b
commit a675e51266

View File

@ -453,11 +453,6 @@ union MOZ_NON_PARAM alignas(8) Value
asBits_ = bitsFromTagAndPayload(JSVAL_TAG_INT32, uint32_t(i));
}
int32_t& getInt32Ref() {
MOZ_ASSERT(isInt32());
return s_.payload_.i32_;
}
void setDouble(double d) {
// Don't assign to asDouble_ to fix a miscompilation with GCC 5.2.1 and
// 5.3.1. See bug 1312488.
@ -469,11 +464,6 @@ union MOZ_NON_PARAM alignas(8) Value
setDouble(GenericNaN());
}
double& getDoubleRef() {
MOZ_ASSERT(isDouble());
return asDouble_;
}
void setString(JSString* str) {
MOZ_ASSERT(js::gc::IsCellPointerValid(str));
asBits_ = bitsFromTagAndPayload(JSVAL_TAG_STRING, PayloadType(str));