Kaydet (Commit) e9e62285 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused Box from ConvolutionKernelType enum

Change-Id: I9f8610bc9ed7d5c175c369973dc8906179ae042d
Reviewed-on: https://gerrit.libreoffice.org/34456Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 03eb9398
......@@ -27,7 +27,6 @@ namespace vcl
enum class ConvolutionKernelType
{
Box = 0,
BiLinear = 1,
BiCubic = 2,
Lanczos3 = 3,
......
......@@ -109,21 +109,6 @@ private:
}
};
class BoxKernel : public Kernel
{
public:
BoxKernel() : Kernel () {}
private:
virtual double GetWidth() const override { return 0.5; }
virtual double Calculate (double x) const override
{
if (-0.5 <= x && x < 0.5)
return 1.0;
return 0.0;
}
};
} // namespace vcl
#endif // INCLUDED_VCL_RESAMPLEKERNEL_HXX
......
......@@ -374,8 +374,6 @@ bool BitmapScaleConvolution::filter(Bitmap& rBitmap)
switch(meKernelType)
{
case ConvolutionKernelType::Box:
return ImplScaleConvolution(rBitmap, mrScaleX, mrScaleY, BoxKernel());
case ConvolutionKernelType::BiLinear:
return ImplScaleConvolution(rBitmap, mrScaleX, mrScaleY, BilinearKernel());
case ConvolutionKernelType::BiCubic:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment