Skip to content

Commit 0b8ed20

Browse files
scott-wilsonjohnhaddon
authored andcommitted
Fixed compiling on Linux Mint 16
I had to delete a lot of code that was defined but not used, and probably broke something in the process. I don't know exactly where to begin testing to make sure I didn't break anything, so any feedback would be appreciated. Otherwise, Cortex *seems* to compile fine on my machine.
1 parent 11b26d5 commit 0b8ed20

13 files changed

+5
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ test/IECoreRI/resultsPython.txt
2727
test/IECoreMaya/resultsPython.txt
2828
test/IECoreNuke/resultsPython.txt
2929
test/IECoreHoudini/resultsPython.txt
30+
/.ubuntu

include/IECore/BoxOps.inl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ bool boxIntersects(
218218
const char middle = 2;
219219

220220
typedef typename BoxTraits<T>::BaseType Vec;
221-
typedef typename VectorTraits<Vec>::BaseType Real;
222221

223222
Vec minB = BoxTraits<T>::min( box );
224223
Vec maxB = BoxTraits<T>::max( box );

include/IECore/TriangleAlgo.inl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,6 @@ Vec triangleClosestPoint( const Vec &v0, const Vec &v1, const Vec &v2, const Vec
330330
template<class Vec>
331331
int triangleBarycentricFeature( const Vec &barycentric, typename VectorTraits<Vec>::BaseType tolerance )
332332
{
333-
typedef typename VectorTraits<Vec>::BaseType Real;
334-
335333
bool bx = VectorTraits<Vec>::get( barycentric, 0 ) > tolerance;
336334
bool by = VectorTraits<Vec>::get( barycentric, 1 ) > tolerance;
337335
bool bz = VectorTraits<Vec>::get( barycentric, 2 ) > tolerance;

include/IECorePython/VectorTypedDataBinding.inl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,6 @@ std::string str<TypedData<std::vector<TYPE> > >( TypedData<std::vector<TYPE> > &
662662

663663
/// \todo Get rid of these macros
664664
#define BASIC_VECTOR_BINDING(ThisClass, Tname) \
665-
typedef IECore::IntrusivePtr< ThisClass > ThisClassPtr; \
666-
typedef IECore::IntrusivePtr< const ThisClass > ThisConstClassPtr; \
667665
typedef VectorTypedDataFunctions< ThisClass > ThisBinder; \
668666
\
669667
RunTimeTypedClass<ThisClass>( \

src/IECore/CurveTangentsOp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ struct CurveTangentsOp::CalculateTangents
8787
ReturnType operator()( T * data )
8888
{
8989
typedef typename T::ValueType VecContainer;
90-
typedef typename VecContainer::value_type Vec;
9190

9291
const VecContainer &points = data->readable();
9392

src/IECore/FaceAreaOp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ void FaceAreaOp::modifyTypedPrimitive( MeshPrimitive * mesh, const CompoundObjec
127127
PolygonIterator faceEnd = mesh->faceEnd();
128128
for( PolygonIterator pIt = mesh->faceBegin(); pIt!=faceEnd; pIt++ )
129129
{
130-
typedef vector<V3f> PointVector;
131130
areas.push_back( polygonArea( pIt.vertexBegin( p.begin() ), pIt.vertexEnd( p.begin() ) ) );
132131
}
133132

src/IECore/ImagePremultiplyOp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ struct ImagePremultiplyOp::PremultFn
9696
{
9797
typedef typename T::ValueType Container;
9898
typedef typename Container::value_type ValueType;
99-
typedef typename Container::iterator Iterator;
10099

101100
ScaledDataConversion< ValueType, float > toFloat;
102101
ScaledDataConversion< float, ValueType > fromFloat;

src/IECore/ImageUnpremultiplyOp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ struct ImageUnpremultiplyOp::UnpremultFn
9696
{
9797
typedef typename T::ValueType Container;
9898
typedef typename Container::value_type ValueType;
99-
typedef typename Container::iterator Iterator;
10099

101100
ScaledDataConversion< ValueType, float > toFloat;
102101
ScaledDataConversion< float, ValueType > fromFloat;

src/IECore/MeshPrimitiveImplicitSurfaceOp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ void MeshPrimitiveImplicitSurfaceOp::modifyTypedPrimitive( MeshPrimitive * typed
243243

244244

245245
V3i resolution;
246+
resolution.x = 0;
247+
resolution.y = 0;
248+
resolution.z = 0;
249+
246250
int gridMethod = m_gridMethodParameter->getNumericValue();
247251
if ( gridMethod == Resolution )
248252
{

src/IECore/SummedAreaOp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ struct SummedAreaOp::SumArea
6565
{
6666
typedef typename T::ValueType Container;
6767
typedef typename Container::value_type V;
68-
typedef typename Container::iterator It;
6968

7069
Container &buffer = data->writable();
7170

0 commit comments

Comments
 (0)