From 775fd9fc6b397f44fc405d2d27713c245bdb1124 Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 22 Nov 2014 10:12:15 +0000 Subject: [PATCH] .cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@7917 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/LineEdit.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/uppsrc/CtrlLib/LineEdit.cpp b/uppsrc/CtrlLib/LineEdit.cpp index b015d3e4a..8041acd6f 100644 --- a/uppsrc/CtrlLib/LineEdit.cpp +++ b/uppsrc/CtrlLib/LineEdit.cpp @@ -89,7 +89,6 @@ Rect LineEdit::GetRectSelection() const bool LineEdit::GetRectSelection(const Rect& rect, int line, int& l, int &h) { if(line >= rect.top && line <= rect.bottom) { - int len = GetLineLength(line); l = GetGPos(line, rect.left); h = GetGPos(line, rect.right); return true; @@ -156,7 +155,6 @@ void LineEdit::PasteColumn(const WString& text) Point p = t.TopLeft(); pos = cursor; for(int i = 0; i < t.bottom - t.top + 1; i++) { - int li = p.y + i; int l = GetGPos(i + p.y, p.x); pos = l + Insert(l, cl[i % cl.GetCount()]); } @@ -237,7 +235,6 @@ void LineEdit::Paint0(Draw& w) { int pos = cpos; int fascent = font.Info().GetAscent(); Color showcolor = Blend(SColorLight, SColorHighlight); - bool trimmed = false; int cursorline = GetLine(cursor); int dx[] = { fsz.cx }; int dx2[] = { 2 * fsz.cx };