diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-20 09:49:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-20 09:48:33 +0000 |
commit | e9e6228533b336317aa809a7aaaa4fd1c338d4f7 (patch) | |
tree | 54848bf2e97b449ebb40638932b935b2a645a064 /vcl | |
parent | 03eb939856a73fed6bbf3850d7dc4d58594a7d98 (diff) |
remove unused Box from ConvolutionKernelType enum
Change-Id: I9f8610bc9ed7d5c175c369973dc8906179ae042d
Reviewed-on: https://gerrit.libreoffice.org/34456
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/BitmapScaleConvolution.hxx | 1 | ||||
-rw-r--r-- | vcl/inc/ResampleKernel.hxx | 15 | ||||
-rw-r--r-- | vcl/source/bitmap/BitmapScaleConvolution.cxx | 2 |
3 files changed, 0 insertions, 18 deletions
diff --git a/vcl/inc/BitmapScaleConvolution.hxx b/vcl/inc/BitmapScaleConvolution.hxx index 0ce161d611e5..324a739c1a17 100644 --- a/vcl/inc/BitmapScaleConvolution.hxx +++ b/vcl/inc/BitmapScaleConvolution.hxx @@ -27,7 +27,6 @@ namespace vcl enum class ConvolutionKernelType { - Box = 0, BiLinear = 1, BiCubic = 2, Lanczos3 = 3, diff --git a/vcl/inc/ResampleKernel.hxx b/vcl/inc/ResampleKernel.hxx index 225336a48011..9088c7a3b3a7 100644 --- a/vcl/inc/ResampleKernel.hxx +++ b/vcl/inc/ResampleKernel.hxx @@ -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 diff --git a/vcl/source/bitmap/BitmapScaleConvolution.cxx b/vcl/source/bitmap/BitmapScaleConvolution.cxx index 6149573953f4..dde9cb6e4d6d 100644 --- a/vcl/source/bitmap/BitmapScaleConvolution.cxx +++ b/vcl/source/bitmap/BitmapScaleConvolution.cxx @@ -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: |