* 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
This commit is contained in:
akr 2014-05-11 16:31:51 +00:00
parent dd5d029db0
commit 543b402f38
4 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,11 @@
Mon May 12 01:30:59 2014 Tanaka Akira <akr@fsij.org>
* ext/socket/ifaddr.c (IS_IFADDRS): Unused macro removed.
* ext/strscan/strscan.c (BUFSIZE): Ditto.
* ext/zlib/zlib.c (OBJ_IS_FREED): Ditto.
Sun May 11 22:27:18 2014 Tanaka Akira <akr@fsij.org> Sun May 11 22:27:18 2014 Tanaka Akira <akr@fsij.org>
* compile.c (BUFSIZE): Unused macro removed. * compile.c (BUFSIZE): Unused macro removed.

View File

@ -74,7 +74,6 @@ static const rb_data_type_t ifaddr_type = {
{ifaddr_mark, ifaddr_free, ifaddr_memsize,}, {ifaddr_mark, ifaddr_free, ifaddr_memsize,},
}; };
#define IS_IFADDRS(obj) rb_typeddata_is_kind_of((obj), &ifaddr_type)
static inline rb_ifaddr_t * static inline rb_ifaddr_t *
check_ifaddr(VALUE self) check_ifaddr(VALUE self)
{ {

View File

@ -1138,7 +1138,6 @@ strscan_restsize(VALUE self)
} }
#define INSPECT_LENGTH 5 #define INSPECT_LENGTH 5
#define BUFSIZE 256
/* /*
* Returns a string that represents the StringScanner object, showing: * Returns a string that represents the StringScanner object, showing:

View File

@ -27,9 +27,6 @@
#define RUBY_ZLIB_VERSION "0.6.0" #define RUBY_ZLIB_VERSION "0.6.0"
#define OBJ_IS_FREED(val) (RBASIC(val)->flags == 0)
#ifndef GZIP_SUPPORT #ifndef GZIP_SUPPORT
#define GZIP_SUPPORT 1 #define GZIP_SUPPORT 1
#endif #endif