From 95453f865de8ce98f9161b9894c68ee338c6e843 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Mon, 17 Dec 2012 15:08:40 -0500 Subject: [PATCH] Bug 822143. Remove unused pattern from CreateSamplingRestrictedDrawable. r=mstange Seems this got left behind when converting to gfxDrawable in bug 572680. --HG-- extra : rebase_source : 48fcd3ec1307539b2d587a44e245359fabcd9de5 --- gfx/thebes/gfxUtils.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gfx/thebes/gfxUtils.cpp b/gfx/thebes/gfxUtils.cpp index a1c2019cd469..a28ac6f90dc7 100644 --- a/gfx/thebes/gfxUtils.cpp +++ b/gfx/thebes/gfxUtils.cpp @@ -261,10 +261,6 @@ CreateSamplingRestrictedDrawable(gfxDrawable* aDrawable, aDrawable->Draw(tmpCtx, needed - needed.TopLeft(), true, gfxPattern::FILTER_FAST, gfxMatrix().Translate(needed.TopLeft())); - nsRefPtr resultPattern = new gfxPattern(temp); - if (!resultPattern) - return nullptr; - nsRefPtr drawable = new gfxSurfaceDrawable(temp, size, gfxMatrix().Translate(-needed.TopLeft())); return drawable.forget();