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();