diff options
author | Jean Boussier <[email protected]> | 2024-05-31 09:59:09 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-06-04 12:23:48 +0900 |
commit | c5ae432ec8fd1aecde5bec90cc2b4769822c9597 (patch) | |
tree | abfb1bf781f6460cf04376b346921e7961ac9e3e /ext/json/parser/parser.h | |
parent | 255ca83fb8d17e7581066abc7f040e6e22bb5f2b (diff) |
[flori/json] Cleanup useless ifdef
The json gem now requires Ruby 2.3, so there is no point keeping
compatibility code for older releases that don't have the
TypedData API.
https://github.com/flori/json/commit/45c86e153f
Diffstat (limited to 'ext/json/parser/parser.h')
-rw-r--r-- | ext/json/parser/parser.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h index 92ed3fdc5d..651d40c074 100644 --- a/ext/json/parser/parser.h +++ b/ext/json/parser/parser.h @@ -85,12 +85,7 @@ static inline void *ruby_zalloc(size_t n) return p; } #endif -#ifdef TypedData_Make_Struct + static const rb_data_type_t JSON_Parser_type; -#define NEW_TYPEDDATA_WRAPPER 1 -#else -#define TypedData_Make_Struct(klass, type, ignore, json) Data_Make_Struct(klass, type, NULL, JSON_free, json) -#define TypedData_Get_Struct(self, JSON_Parser, ignore, json) Data_Get_Struct(self, JSON_Parser, json) -#endif #endif |