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
f05f6963
Unverified
Commit
f05f6963
authored
Jun 29, 2021
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Jun 29, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5498 from dearblue/ruby-warns
Avoid warnings with `ruby -cw`
parents
d63c0df6
2d0b50f6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
9 deletions
+3
-9
mrbgems/mruby-array-ext/mrblib/array.rb
mrbgems/mruby-array-ext/mrblib/array.rb
+0
-2
mrbgems/mruby-hash-ext/mrblib/hash.rb
mrbgems/mruby-hash-ext/mrblib/hash.rb
+0
-2
mrbgems/mruby-io/mrblib/io.rb
mrbgems/mruby-io/mrblib/io.rb
+2
-2
mrbgems/mruby-string-ext/mrblib/string.rb
mrbgems/mruby-string-ext/mrblib/string.rb
+0
-2
mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb
mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb
+1
-1
No files found.
mrbgems/mruby-array-ext/mrblib/array.rb
View file @
f05f6963
...
...
@@ -386,7 +386,6 @@ class Array
end
beg
=
len
=
0
ary
=
[]
if
block
if
arg0
.
nil?
&&
arg1
.
nil?
&&
arg2
.
nil?
# ary.fill { |index| block } -> ary
...
...
@@ -660,7 +659,6 @@ class Array
return
to_enum
:keep_if
unless
block
idx
=
0
len
=
self
.
size
while
idx
<
self
.
size
do
if
block
.
call
(
self
[
idx
])
idx
+=
1
...
...
mrbgems/mruby-hash-ext/mrblib/hash.rb
View file @
f05f6963
...
...
@@ -116,7 +116,6 @@ class Hash
nk
.
each
{
|
k
|
h
[
k
]
=
self
[
k
]
}
h
self
.
replace
(
h
)
end
...
...
@@ -256,7 +255,6 @@ class Hash
def
keep_if
(
&
block
)
return
to_enum
:keep_if
unless
block
keys
=
[]
self
.
each
do
|
k
,
v
|
unless
block
.
call
([
k
,
v
])
self
.
delete
(
k
)
...
...
mrbgems/mruby-io/mrblib/io.rb
View file @
f05f6963
...
...
@@ -209,7 +209,7 @@ class IO
end
array
=
[]
while
1
while
true
begin
_read_buf
rescue
EOFError
...
...
@@ -256,7 +256,7 @@ class IO
end
array
=
[]
while
1
while
true
begin
_read_buf
rescue
EOFError
...
...
mrbgems/mruby-string-ext/mrblib/string.rb
View file @
f05f6963
...
...
@@ -344,8 +344,6 @@ class String
end
def
codepoints
(
&
block
)
len
=
self
.
size
if
block_given?
self
.
split
(
''
).
each
do
|
x
|
block
.
call
(
x
.
ord
)
...
...
mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb
View file @
f05f6963
def
self
.
include
(
*
modules
)
def
self
.
include
(
*
modules
)
self
.
class
.
include
(
*
modules
)
end
...
...
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