Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve warnings #1597

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions lib/mail/parsers/address_lists_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31984,7 +31984,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down Expand Up @@ -32453,9 +32452,6 @@ def self.parse(data)
next
end
end
begin
phrase_e = p - 1
end
when 14
begin
if address
Expand Down Expand Up @@ -32614,9 +32610,6 @@ def self.parse(data)
next
end
end
begin
phrase_e = p - 1
end
when 65
begin
group_name_s = p
Expand Down Expand Up @@ -32650,9 +32643,6 @@ def self.parse(data)
next
end
end
begin
obs_domain_list_s = p
end
when 38
begin
local_dot_atom_e = p - 1
Expand Down Expand Up @@ -32739,12 +32729,6 @@ def self.parse(data)
next
end
end
begin
phrase_e = p - 1
end
begin
domain_s = p
end
when 31
begin
begin
Expand All @@ -32755,12 +32739,6 @@ def self.parse(data)
next
end
end
begin
phrase_e = p - 1
end
begin
local_dot_atom_pre_comment_e = p - 1
end
when 40
begin
if address
Expand Down Expand Up @@ -32821,9 +32799,6 @@ def self.parse(data)
next
end
end
begin
local_dot_atom_s = p
end
when 36
begin
local_dot_atom_pre_comment_e = p - 1
Expand Down Expand Up @@ -32862,15 +32837,6 @@ def self.parse(data)
next
end
end
begin
address_s = p
end
begin
phrase_s = p
end
begin
local_dot_atom_s = p
end
when 64
begin
group_name_s = p
Expand All @@ -32887,12 +32853,6 @@ def self.parse(data)
next
end
end
begin
address_s = p
end
begin
local_dot_atom_s = p
end
end
end
end
Expand Down
25 changes: 0 additions & 25 deletions lib/mail/parsers/content_disposition_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down Expand Up @@ -791,18 +790,6 @@ def self.parse(data)
next
end
end
begin
if param_attr.nil?
raise Mail::Field::ParseError.new(Mail::ContentDispositionElement, data, "no attribute for value")
end

# Use quoted string value if one exists, otherwise use parameter value
value = qstr || chars(data, param_val_s, p - 1)

content_disposition.parameters << {param_attr => value}
param_attr = nil
qstr = nil
end
when 21
begin
end
Expand All @@ -815,18 +802,6 @@ def self.parse(data)
next
end
end
begin
if param_attr.nil?
raise Mail::Field::ParseError.new(Mail::ContentDispositionElement, data, "no attribute for value")
end

# Use quoted string value if one exists, otherwise use parameter value
value = qstr || chars(data, param_val_s, p - 1)

content_disposition.parameters << {param_attr => value}
param_attr = nil
qstr = nil
end
end
end
end
Expand Down
6 changes: 1 addition & 5 deletions lib/mail/parsers/content_location_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def self.parse(data)
return content_location if Mail::Utilities.blank?(data)

# Parser state
disp_type_s = param_attr_s = param_attr = qstr_s = qstr = param_val_s = nil
qstr_s = qstr = param_val_s = nil

# 5.1 Variables Used by Ragel
p = 0
Expand All @@ -604,7 +604,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down Expand Up @@ -757,9 +756,6 @@ def self.parse(data)
next
end
end
begin
content_location.location = chars(data, token_string_s, p - 1)
end
when 16
begin
qstr_s = p
Expand Down
1 change: 0 additions & 1 deletion lib/mail/parsers/content_transfer_encoding_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down
25 changes: 0 additions & 25 deletions lib/mail/parsers/content_type_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down Expand Up @@ -938,18 +937,6 @@ def self.parse(data)
next
end
end
begin
if param_attr.nil?
raise Mail::Field::ParseError.new(Mail::ContentTypeElement, data, "no attribute for value")
end

# Use quoted s value if one exists, otherwise use parameter value
value = qstr || chars(data, param_val_s, p - 1)

content_type.parameters << {param_attr => value}
param_attr = nil
qstr = nil
end
when 24
begin
end
Expand All @@ -962,18 +949,6 @@ def self.parse(data)
next
end
end
begin
if param_attr.nil?
raise Mail::Field::ParseError.new(Mail::ContentTypeElement, data, "no attribute for value")
end

# Use quoted s value if one exists, otherwise use parameter value
value = qstr || chars(data, param_val_s, p - 1)

content_type.parameters << {param_attr => value}
param_attr = nil
qstr = nil
end
end
end
end
Expand Down
4 changes: 0 additions & 4 deletions lib/mail/parsers/date_time_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down Expand Up @@ -833,9 +832,6 @@ def self.parse(data)
next
end
end
begin
date_s = p
end
when 7
begin
end
Expand Down
1 change: 0 additions & 1 deletion lib/mail/parsers/envelope_from_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3238,7 +3238,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down
6 changes: 0 additions & 6 deletions lib/mail/parsers/message_ids_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4845,7 +4845,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down Expand Up @@ -5108,11 +5107,6 @@ def self.parse(data)
next
end
end
begin
id = chars(data, msg_id_s, p - 1)
id = $1 if id =~ /.*<(.*)>.*/
message_ids.message_ids << id
end
end
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/mail/parsers/mime_version_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down
1 change: 0 additions & 1 deletion lib/mail/parsers/phrase_lists_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,6 @@ def self.parse(data)
end

begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
Expand Down
Loading
Loading