[Bf-blender-cvs] [3458bad] master: Freestyle: removed unnecessary #include files and made minor code cleanup.

Tamito Kajiyama noreply at git.blender.org
Thu Apr 17 07:37:40 CEST 2014


Commit: 3458bad12d4ba7c1184a44fcdabfef265335d30c
Author: Tamito Kajiyama
Date:   Thu Apr 17 12:45:22 2014 +0900
https://developer.blender.org/rB3458bad12d4ba7c1184a44fcdabfef265335d30c

Freestyle: removed unnecessary #include files and made minor code cleanup.

===================================================================

M	source/blender/freestyle/intern/geometry/GridHelpers.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.h
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
M	source/blender/freestyle/intern/stroke/ChainingIterators.h
M	source/blender/freestyle/intern/view_map/CulledOccluderSource.cpp
M	source/blender/freestyle/intern/view_map/Functions1D.cpp
M	source/blender/freestyle/intern/view_map/Interface0D.h
M	source/blender/freestyle/intern/view_map/Interface1D.h
M	source/blender/freestyle/intern/view_map/SteerableViewMap.cpp

===================================================================

diff --git a/source/blender/freestyle/intern/geometry/GridHelpers.cpp b/source/blender/freestyle/intern/geometry/GridHelpers.cpp
index 2b80960..a0543e5 100644
--- a/source/blender/freestyle/intern/geometry/GridHelpers.cpp
+++ b/source/blender/freestyle/intern/geometry/GridHelpers.cpp
@@ -25,8 +25,6 @@
  *  \date 2010-12-21
  */
 
-#include <math.h>
-
 #include "GridHelpers.h"
 
 namespace Freestyle {
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.h b/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.h
index 3dea73c..bb1207a 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.h
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.h
@@ -25,7 +25,6 @@
 #ifndef __FREESTYLE_PYTHON_ORIENTEDVIEWEDGEITERATOR_H__
 #define __FREESTYLE_PYTHON_ORIENTEDVIEWEDGEITERATOR_H__
 
-#include "../../stroke/Stroke.h"
 #include "../BPy_Iterator.h"
 
 #include "../../view_map/ViewMapIterators.h"
diff --git a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
index be2be0a..06ba121 100644
--- a/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
+++ b/source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
@@ -38,8 +38,6 @@
 #include "UnaryFunction0D_double/BPy_LocalAverageDepthF0D.h"
 #include "UnaryFunction0D_double/BPy_ZDiscontinuityF0D.h"
 
-#include "../Director.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif
diff --git a/source/blender/freestyle/intern/stroke/ChainingIterators.h b/source/blender/freestyle/intern/stroke/ChainingIterators.h
index 5a8d4b6..ff9203d 100644
--- a/source/blender/freestyle/intern/stroke/ChainingIterators.h
+++ b/source/blender/freestyle/intern/stroke/ChainingIterators.h
@@ -32,8 +32,7 @@
 
 #include "Predicates1D.h"
 
-
-#include "../system/Iterator.h" //soc 
+#include "../system/Iterator.h"
 
 #include "../view_map/ViewMap.h"
 #include "../view_map/ViewMapIterators.h"
diff --git a/source/blender/freestyle/intern/view_map/CulledOccluderSource.cpp b/source/blender/freestyle/intern/view_map/CulledOccluderSource.cpp
index 2a1388c..d98a323 100644
--- a/source/blender/freestyle/intern/view_map/CulledOccluderSource.cpp
+++ b/source/blender/freestyle/intern/view_map/CulledOccluderSource.cpp
@@ -27,8 +27,6 @@
 
 #include "CulledOccluderSource.h"
 
-#include "FRS_freestyle.h"
-
 #include "../geometry/GridHelpers.h"
 
 #include "BKE_global.h"
diff --git a/source/blender/freestyle/intern/view_map/Functions1D.cpp b/source/blender/freestyle/intern/view_map/Functions1D.cpp
index c66d8b8..f29da66 100644
--- a/source/blender/freestyle/intern/view_map/Functions1D.cpp
+++ b/source/blender/freestyle/intern/view_map/Functions1D.cpp
@@ -26,7 +26,7 @@
  *  \date 01/07/2003
  */
 
-# include "Functions1D.h"
+#include "Functions1D.h"
 
 using namespace std;
 
diff --git a/source/blender/freestyle/intern/view_map/Interface0D.h b/source/blender/freestyle/intern/view_map/Interface0D.h
index 8f7137f..e59ed4c 100644
--- a/source/blender/freestyle/intern/view_map/Interface0D.h
+++ b/source/blender/freestyle/intern/view_map/Interface0D.h
@@ -34,7 +34,7 @@
 #include "../geometry/Geom.h"
 
 #include "../system/Id.h"
-#include "../system/Iterator.h" //soc 
+#include "../system/Iterator.h"
 #include "../system/Precision.h"
 
 #include "../winged_edge/Nature.h"
@@ -64,7 +64,9 @@ class Interface0D
 public:
 	/*! Default constructor */
 	Interface0D() {}
-	virtual ~Interface0D() {}; //soc
+
+	/*! Destructor */
+	virtual ~Interface0D() {};
 
 	/*! Returns the string "Interface0D". */
 	virtual string getExactTypeName() const
diff --git a/source/blender/freestyle/intern/view_map/Interface1D.h b/source/blender/freestyle/intern/view_map/Interface1D.h
index 95ace73..7afa61f 100644
--- a/source/blender/freestyle/intern/view_map/Interface1D.h
+++ b/source/blender/freestyle/intern/view_map/Interface1D.h
@@ -136,7 +136,8 @@ public:
 		_timeStamp = 0;
 	}
 
-	virtual ~Interface1D() {}; //soc
+	/*! Destructor */
+	virtual ~Interface1D() {};
 
 	/*! Returns the string "Interface1D". */
 	virtual string getExactTypeName() const
diff --git a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
index a4cb2a4..fe6f3f1 100644
--- a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
+++ b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp
@@ -25,8 +25,6 @@
  *  \date 01/07/2003
  */
 
-//soc #include <qimage.h>
-//soc #include <qstring.h>
 #include <sstream>
 
 #include "Silhouette.h"




More information about the Bf-blender-cvs mailing list