From 03a2749a311c75e0f34070b2d6f991855f329fc9 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Sun, 16 Mar 2014 15:22:00 +0100 Subject: removed Value constructor that wraps around a hash table --- include/value.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'include/value.h') diff --git a/include/value.h b/include/value.h index 94cc1cf..d49ce4a 100644 --- a/include/value.h +++ b/include/value.h @@ -112,12 +112,6 @@ public: */ Value(struct _zval_struct *zval, bool ref = false); - /** - * Wrap around a hash table - * @param ht Hashtable to wrap - */ - Value(struct _hashtable *ht); - /** * Wrap around an object implemented by us * @param object Object to be wrapped @@ -445,6 +439,8 @@ public: template std::vector vectorValue() const { + + // only works for arrays, other types return an empty vector if (!isArray()) return std::vector(); -- cgit v1.2.3