summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 16:31:51 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 16:31:51 +0000
commit543b402f38ffc0be797c37ef05c945fe57541fa3 (patch)
treef969acc8f6434c94efc53525f36958403a1ed546 /ext
parentdd5d029db026a106a16a307854790c8bec6434ba (diff)
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/ifaddr.c1
-rw-r--r--ext/strscan/strscan.c1
-rw-r--r--ext/zlib/zlib.c3
3 files changed, 0 insertions, 5 deletions
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