Remove dead ArrayData::nvGet() functions.

They were dead.
Esse commit está contido em:
Edwin Smith
2013-07-02 14:10:55 -07:00
commit de Sara Golemon
commit 47b1915f07
2 arquivos alterados com 2 adições e 15 exclusões
-13
Ver Arquivo
@@ -486,19 +486,6 @@ CVarRef ArrayData::get(CVarRef k, bool error) const {
: get(getStringKey(cell), error);
}
// nvGet has to search twice when using the ArrayData api so as not to
// conflate no-key with have-key && value == null_varaint. Subclasses
// can easily do this with one key search.
TypedValue* ArrayData::nvGet(int64_t k) const {
return exists(k) ? (TypedValue*)&get(k, false) :
nullptr;
}
TypedValue* ArrayData::nvGet(const StringData* key) const {
return exists(key) ? (TypedValue*)&get(key, false) : nullptr;
}
void ArrayData::nvGetKey(TypedValue* out, ssize_t pos) {
Variant k = getKey(pos);
TypedValue* tv = k.asTypedValue();
+2 -2
Ver Arquivo
@@ -214,8 +214,8 @@ public:
* Interface for VM helpers. ArrayData implements generic versions
* using the other ArrayData api; subclasses may do better.
*/
virtual TypedValue* nvGet(int64_t k) const;
virtual TypedValue* nvGet(const StringData* k) const;
virtual TypedValue* nvGet(int64_t k) const = 0;
virtual TypedValue* nvGet(const StringData* k) const = 0;
virtual void nvGetKey(TypedValue* out, ssize_t pos);
virtual TypedValue* nvGetValueRef(ssize_t pos);
virtual TypedValue* nvGetCell(int64_t ki) const;