Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
1d1c8125
Unverified
Commit
1d1c8125
authored
Nov 24, 2019
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Nov 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4840 from shuujii/remove-unused-methods-of-MRubyIOTestUtil
Remove unused methods of `MRubyIOTestUtil`
parents
b3e6a993
ce553fa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
mrbgems/mruby-io/test/mruby_io_test.c
mrbgems/mruby-io/test/mruby_io_test.c
+0
-25
No files found.
mrbgems/mruby-io/test/mruby_io_test.c
View file @
1d1c8125
...
...
@@ -176,28 +176,6 @@ mrb_io_test_io_cleanup(mrb_state *mrb, mrb_value self)
return
mrb_nil_value
();
}
static
mrb_value
mrb_io_test_file_setup
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_value
ary
=
mrb_io_test_io_setup
(
mrb
,
self
);
#if !defined(_WIN32) && !defined(_WIN64)
if
(
symlink
(
"/usr/bin"
,
"test-bin"
)
==
-
1
)
{
mrb_raise
(
mrb
,
E_RUNTIME_ERROR
,
"can't make a symbolic link"
);
}
#endif
return
ary
;
}
static
mrb_value
mrb_io_test_file_cleanup
(
mrb_state
*
mrb
,
mrb_value
self
)
{
mrb_io_test_io_cleanup
(
mrb
,
self
);
remove
(
"test-bin"
);
return
mrb_nil_value
();
}
static
mrb_value
mrb_io_test_mkdtemp
(
mrb_state
*
mrb
,
mrb_value
klass
)
{
...
...
@@ -245,9 +223,6 @@ mrb_mruby_io_gem_test(mrb_state* mrb)
mrb_define_class_method
(
mrb
,
io_test
,
"io_test_setup"
,
mrb_io_test_io_setup
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
io_test
,
"io_test_cleanup"
,
mrb_io_test_io_cleanup
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
io_test
,
"file_test_setup"
,
mrb_io_test_file_setup
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
io_test
,
"file_test_cleanup"
,
mrb_io_test_file_cleanup
,
MRB_ARGS_NONE
());
mrb_define_class_method
(
mrb
,
io_test
,
"mkdtemp"
,
mrb_io_test_mkdtemp
,
MRB_ARGS_REQ
(
1
));
mrb_define_class_method
(
mrb
,
io_test
,
"rmdir"
,
mrb_io_test_rmdir
,
MRB_ARGS_REQ
(
1
));
mrb_define_class_method
(
mrb
,
io_test
,
"win?"
,
mrb_io_win_p
,
MRB_ARGS_NONE
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment