From b628482d68cd969996ab767a9e291341d97caf2b Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Tue, 12 Aug 2008 23:15:25 -0400 Subject: [PATCH] richedit: Removed an unused local variable and assignments to it. --- dlls/riched20/paint.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index c93a3e54631..c2bcfc252a1 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -667,9 +667,9 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) { ME_DisplayItem *p; ME_Run *run; ME_Paragraph *para = NULL; - RECT rc, rcText, bounds; + RECT rc, bounds; int y = c->pt.y; - int height = 0, baseline = 0, no=0, pno = 0; + int height = 0, baseline = 0, no=0; BOOL visible = FALSE; c->pt.x = c->rcView.left; @@ -680,15 +680,11 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) { case diParagraph: para = &p->member.para; assert(para); - pno = 0; if (para->pCell) { ME_Cell *cell = ¶->pCell->member.cell; rc.left = cell->pt.x; rc.right = rc.left + cell->nWidth; - rcText.left = cell->pt.x + ME_twips2pointsX(c, para->pFmt->dxStartIndent); - rcText.right = cell->pt.x + cell->nWidth - - ME_twips2pointsX(c, para->pFmt->dxRightIndent); } if (para->nFlags & MEPF_ROWSTART) { ME_Cell *cell = ¶->next_para->member.para.pCell->member.cell; @@ -697,8 +693,6 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) { ME_Cell *cell = ¶->prev_para->member.para.pCell->member.cell; rc.left = cell->pt.x + cell->nWidth; } - rcText.left = rc.left + ME_twips2pointsX(c, para->pFmt->dxStartIndent); - rcText.right = rc.right - ME_twips2pointsX(c, para->pFmt->dxRightIndent); ME_DrawParaDecoration(c, para, y, &bounds); y += bounds.top; break; @@ -732,8 +726,6 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) { height = p->member.row.nHeight; baseline = p->member.row.nBaseline; - if (!pno++) - rcText.right += ME_twips2pointsX(c, para->pFmt->dxOffset); break; case diRun: assert(para); -- 2.11.4.GIT