From 393831bfa0fdcc5db87841ea8d429c9e8275285d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 25 Feb 2012 10:57:37 +1100 Subject: Fix dead code warnings from Xcode Analyze. --- lexers/LexPerl.cxx | 3 +-- lexers/LexRuby.cxx | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lexers/LexPerl.cxx b/lexers/LexPerl.cxx index 87a06d43e..9cc26b097 100644 --- a/lexers/LexPerl.cxx +++ b/lexers/LexPerl.cxx @@ -945,8 +945,7 @@ void SCI_METHOD LexerPerl::Lex(unsigned int startPos, int length, int initStyle, sc.SetState(SCE_PL_POD); } else fw = fw2; - } else - pod = SCE_PL_POD; + } } else { if (pod == SCE_PL_POD_VERB // still part of current paragraph && (styler.GetLineState(ln - 1) == SCE_PL_POD)) { diff --git a/lexers/LexRuby.cxx b/lexers/LexRuby.cxx index d21a3df15..23115e6e0 100644 --- a/lexers/LexRuby.cxx +++ b/lexers/LexRuby.cxx @@ -1192,7 +1192,6 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle, state = SCE_RB_DEFAULT; i--; chNext = ch; - chNext2 = chNext; preferRE = false; } else if (HereDoc.Quoted) { if (ch == HereDoc.Quote) { // closing quote => end of delimiter @@ -1349,7 +1348,6 @@ static void ColouriseRbDoc(unsigned int startPos, int length, int initStyle, } } chNext = styler.SafeGetCharAt(i + 1); - chNext2 = styler.SafeGetCharAt(i + 2); } } // Quotes of all kinds... -- cgit v1.2.3