X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/16b20e711ae0d7456d2e3349217d3e0e2ddbb594..9ebca0a01a76e046969f31a376737d075707e3a2:/sig/types.hpp diff --git a/sig/types.hpp b/sig/types.hpp index d437475..3bed8fd 100644 --- a/sig/types.hpp +++ b/sig/types.hpp @@ -65,10 +65,6 @@ struct Type { virtual ffi_type *GetFFI(CYPool &pool) const = 0; virtual void PoolFFI(CYPool *pool, JSContextRef context, ffi_type *ffi, void *data, JSValueRef value) const = 0; virtual JSValueRef FromFFI(JSContextRef context, ffi_type *ffi, void *data, bool initialize = false, JSObjectRef owner = NULL) const = 0; - - virtual size_t Translate(Type *&type) const { - return _not(size_t); - } }; template @@ -223,11 +219,6 @@ struct Array : ffi_type *GetFFI(CYPool &pool) const override; void PoolFFI(CYPool *pool, JSContextRef context, ffi_type *ffi, void *data, JSValueRef value) const override; JSValueRef FromFFI(JSContextRef context, ffi_type *ffi, void *data, bool initialize, JSObjectRef owner) const override; - - size_t Translate(Type *&type) const override { - type = &this->type; - return size; - } }; struct Object :