Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index a8c5baf5104d1f739997209c84a7387fdd42132f..722440075f104e13fd98f1cbe66d4dd08bda0a6a 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2955,17 +2955,6 @@ int DescriptorArray::GetFieldIndex(int descriptor_number) { |
return GetDetails(descriptor_number).field_index(); |
} |
-FieldType* DescriptorArray::GetFieldType(int descriptor_number) { |
- DCHECK(GetDetails(descriptor_number).location() == kField); |
- Object* value = GetValue(descriptor_number); |
- if (value->IsWeakCell()) { |
- if (WeakCell::cast(value)->cleared()) return FieldType::None(); |
- value = WeakCell::cast(value)->value(); |
- } |
- return FieldType::cast(value); |
-} |
- |
- |
Object* DescriptorArray::GetConstant(int descriptor_number) { |
return GetValue(descriptor_number); |
} |