Remove unneeded include files
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Some files include unneeded headers, especially under Windows.
- VTK/Common/vtkObjectBase.h
#include "vtkIndent.h" #include "vtkSystemIncludes.h"
=> vtkIndent.h already includes vtkSystemIncludes.h.
- VTK/Common/vtkMutexLock.h
#ifdef VTK_USE_WIN32_THREADS #include <winbase.h> // Needed for WIN32 implementation of mutex typedef HANDLE vtkMutexType; #endif
=> <windows.h> is included through vtkObjectBase.h, so <winbase.h> is unneeded
- VTK/Common/vtkCriticalSection.h
#ifdef VTK_USE_WIN32_THREADS #include <winbase.h> // Needed for win32 implementation of mutex typedef CRITICAL_SECTION vtkCritSecType; #endif
=> <windows.h> is included through vtkObjectBase.h, so <winbase.h> is unneeded
- VTK/Common/vtkDirectory.cxx
#if defined(_MSC_VER) || defined(BORLANDC) || defined(MINGW32) #include <windows.h>
=> already included + not needed
- VTK/Rendering/vtkOpenGLProperty.h
#include <math.h> #include "vtkOpenGLRenderer.h" #include "vtkOpenGLProperty.h" #include <math.h> #include "vtkOpenGLRenderer.h" #include "vtkOpenGLProperty.h"
headers are included twice
- VTK/Rendering/vtkInteractorStyleUnicam.cxx
#if defined(_WIN32) || defined(WIN32) #include <winbase.h>
=> winbase.h is unneeded
- VTK/Common/vtkDynamicLoader.cxx
#if defined(_WIN32) || defined(WIN32) #include <winbase.h>
=> winbase.h is unneeded
- VTK/Hybrid/vtkWin32VideoSource.cxx
#include <ctype.h>
#include <windows.h> #include <winuser.h> #include <vfw.h>
=> windows.h and winuser.h are unneeded