From a3dfb67b28eb610fcd451b18128f6f30471a4bfb Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 29 May 2020 09:57:06 +0200 Subject: [PATCH] [A/DE/VtkVis] Raster: Rm. unused private function. --- Applications/DataExplorer/VtkVis/VtkRaster.cpp | 10 ---------- Applications/DataExplorer/VtkVis/VtkRaster.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/Applications/DataExplorer/VtkVis/VtkRaster.cpp b/Applications/DataExplorer/VtkVis/VtkRaster.cpp index db80c188292..188af8f2139 100644 --- a/Applications/DataExplorer/VtkVis/VtkRaster.cpp +++ b/Applications/DataExplorer/VtkVis/VtkRaster.cpp @@ -388,13 +388,3 @@ bool VtkRaster::readWorldFile(std::string const& filename, image->SetDataOrigin(x0, vtk_y0, 0); return true; } - -void VtkRaster::uint32toRGBA(const unsigned int s, int* p) -{ - p[3] = s / (256 * 256 * 256); - int r = s % (256 * 256 * 256); - p[2] = r / (256 * 256); - r %= (256 * 256); - p[1] = r / 256; - p[0] = r % 256; -} diff --git a/Applications/DataExplorer/VtkVis/VtkRaster.h b/Applications/DataExplorer/VtkVis/VtkRaster.h index a8e70c8d4f3..65e87013562 100644 --- a/Applications/DataExplorer/VtkVis/VtkRaster.h +++ b/Applications/DataExplorer/VtkVis/VtkRaster.h @@ -72,7 +72,4 @@ private: * BMP/JPG/PNG-file and create a RasterHeader for the image. */ static bool readWorldFile(std::string const& filename, vtkImageReader2* image); - - /// Converts an uint32-number into a quadruple representing RGBA-colours for a pixel. - static void uint32toRGBA(const unsigned int s, int* p); }; -- GitLab