From 9086cf5d79ceb3fa10fcc6a8ecf618a0f530b772 Mon Sep 17 00:00:00 2001 From: ozantonkal Date: Sun, 25 Aug 2013 15:39:39 +0200 Subject: [PATCH] remove unused includes and libraries from linking --- modules/viz/CMakeLists.txt | 1 - modules/viz/src/precomp.hpp | 79 +----------------------------------------- modules/viz/src/viz3d_impl.cpp | 12 ++----- modules/viz/src/viz3d_impl.hpp | 4 --- 4 files changed, 3 insertions(+), 93 deletions(-) diff --git a/modules/viz/CMakeLists.txt b/modules/viz/CMakeLists.txt index 05388d7..5de29bb 100644 --- a/modules/viz/CMakeLists.txt +++ b/modules/viz/CMakeLists.txt @@ -49,4 +49,3 @@ if(BUILD_opencv_viz) target_link_libraries(opencv_viz "-framework Cocoa") endif() endif() - diff --git a/modules/viz/src/precomp.hpp b/modules/viz/src/precomp.hpp index 69d20a5..9dafeec 100644 --- a/modules/viz/src/precomp.hpp +++ b/modules/viz/src/precomp.hpp @@ -15,34 +15,19 @@ #include #include -#include -#include -#include -#include -#include #include -#include -#include #include -#include -#include -#include #include -#include #include #include -#include -#include #include #include #include -#include #include #include #include #include #include -#include #include #include #include @@ -57,18 +42,12 @@ #include #include #include -#include #include -#include #include #include #include -#include #include -#include -#include #include -#include #include #include #include @@ -76,78 +55,22 @@ #include #include #include -#include -#include -#include #include -#include #include -#include #include -#include -#include -#include -#include #include -#include #include #include -#include -#include #include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include #include #include - #include -#include -#include -#include -#include -#include -#include -#include -#include #include - - #if defined __GNUC__ && defined __DEPRECATED_DISABLED__ #define __DEPRECATED #undef __DEPRECATED_DISABLED__ diff --git a/modules/viz/src/viz3d_impl.cpp b/modules/viz/src/viz3d_impl.cpp index f015733..d04bb54 100644 --- a/modules/viz/src/viz3d_impl.cpp +++ b/modules/viz/src/viz3d_impl.cpp @@ -583,22 +583,13 @@ void cv::viz::Viz3d::VizImpl::updateCells (vtkSmartPointer &cell } ////////////////////////////////////////////////////////////////////////////////////////////// -void cv::viz::Viz3d::VizImpl::allocVtkPolyData (vtkSmartPointer &polydata) -{polydata = vtkSmartPointer::New (); } - -void cv::viz::Viz3d::VizImpl::allocVtkPolyData (vtkSmartPointer &polydata) -{ polydata = vtkSmartPointer::New (); } - -void cv::viz::Viz3d::VizImpl::allocVtkUnstructuredGrid (vtkSmartPointer &polydata) -{ polydata = vtkSmartPointer::New (); } - -////////////////////////////////////////////////////////////////////////////////////////////// void cv::viz::Viz3d::VizImpl::setFullScreen (bool mode) { if (window_) window_->SetFullScreen (mode); } +////////////////////////////////////////////////////////////////////////////////////////////// void cv::viz::Viz3d::VizImpl::setWindowName (const std::string &name) { if (window_) @@ -610,6 +601,7 @@ cv::String cv::viz::Viz3d::VizImpl::getWindowName() const return (window_ ? window_->GetWindowName() : ""); } +////////////////////////////////////////////////////////////////////////////////////////////// void cv::viz::Viz3d::VizImpl::setWindowPosition (int x, int y) { window_->SetPosition (x, y); } void cv::viz::Viz3d::VizImpl::setWindowSize (int xw, int yw) { window_->SetSize (xw, yw); } cv::Size cv::viz::Viz3d::VizImpl::getWindowSize() const { return Size(window_->GetSize()[0], window_->GetSize()[1]); } diff --git a/modules/viz/src/viz3d_impl.hpp b/modules/viz/src/viz3d_impl.hpp index 4d24fb8..61948f9 100644 --- a/modules/viz/src/viz3d_impl.hpp +++ b/modules/viz/src/viz3d_impl.hpp @@ -178,10 +178,6 @@ private: * generate */ void updateCells (vtkSmartPointer &cells, vtkSmartPointer &initcells, vtkIdType nr_points); - - void allocVtkPolyData (vtkSmartPointer &polydata); - void allocVtkPolyData (vtkSmartPointer &polydata); - void allocVtkUnstructuredGrid (vtkSmartPointer &polydata); }; -- 2.7.4