From 543b402f38ffc0be797c37ef05c945fe57541fa3 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 11 May 2014 16:31:51 +0000 Subject: * ext/socket/ifaddr.c (IS_IFADDRS): Unused macro removed. * ext/strscan/strscan.c (BUFSIZE): Ditto. * ext/zlib/zlib.c (OBJ_IS_FREED): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/ifaddr.c | 1 - ext/strscan/strscan.c | 1 - ext/zlib/zlib.c | 3 --- 3 files changed, 5 deletions(-) (limited to 'ext') diff --git a/ext/socket/ifaddr.c b/ext/socket/ifaddr.c index 16cd47be5a..4f0286c700 100644 --- a/ext/socket/ifaddr.c +++ b/ext/socket/ifaddr.c @@ -74,7 +74,6 @@ static const rb_data_type_t ifaddr_type = { {ifaddr_mark, ifaddr_free, ifaddr_memsize,}, }; -#define IS_IFADDRS(obj) rb_typeddata_is_kind_of((obj), &ifaddr_type) static inline rb_ifaddr_t * check_ifaddr(VALUE self) { diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c index ec983e1f50..ad0c527972 100644 --- a/ext/strscan/strscan.c +++ b/ext/strscan/strscan.c @@ -1138,7 +1138,6 @@ strscan_restsize(VALUE self) } #define INSPECT_LENGTH 5 -#define BUFSIZE 256 /* * Returns a string that represents the StringScanner object, showing: diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index db09af68fe..b323efab13 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -27,9 +27,6 @@ #define RUBY_ZLIB_VERSION "0.6.0" - -#define OBJ_IS_FREED(val) (RBASIC(val)->flags == 0) - #ifndef GZIP_SUPPORT #define GZIP_SUPPORT 1 #endif -- cgit v1.2.3