summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAkira Yumiyama <[email protected]>2013-05-12 14:14:48 +0900
committerAkira Yumiyama <[email protected]>2013-05-12 14:14:48 +0900
commitd39a05e68e0288d648e8ecf9574799593943e55c (patch)
treec341b8235e5ab9876465355323fa5765c7890d57 /src
parent49cc9c7cfa55f4aa11fc1ce39539429e97e536b4 (diff)
downloadmruby-d39a05e68e0288d648e8ecf9574799593943e55c.tar.gz
mruby-d39a05e68e0288d648e8ecf9574799593943e55c.zip
remove unused variable.
Diffstat (limited to 'src')
-rw-r--r--src/io.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/io.c b/src/io.c
index e4e78738b..d1ba729aa 100644
--- a/src/io.c
+++ b/src/io.c
@@ -303,7 +303,7 @@ mrb_value
mrb_io_initialize(mrb_state *mrb, mrb_value io)
{
struct mrb_io *fptr;
- mrb_int fd, flags;
+ mrb_int fd;
mrb_value mode, opt;
DATA_TYPE(io) = &mrb_io_type;
@@ -319,8 +319,6 @@ mrb_io_initialize(mrb_state *mrb, mrb_value io)
opt = mrb_hash_new(mrb);
}
- flags = mrb_io_modestr_to_flags(mrb, mrb_string_value_cstr(mrb, &mode));
-
mrb_iv_set(mrb, io, mrb_intern(mrb, "@buf"), mrb_str_new_cstr(mrb, ""));
mrb_iv_set(mrb, io, mrb_intern(mrb, "@pos"), mrb_fixnum_value(0));
@@ -328,8 +326,7 @@ mrb_io_initialize(mrb_state *mrb, mrb_value io)
if (fptr == NULL) {
fptr = mrb_io_alloc(mrb);
}
- fptr->fd = fd;
-
+ fptr->fd = fd;
DATA_PTR(io) = fptr;
return io;