Commit ecb997aa authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed unused method 'is' from expression templates

parent 6cb1a5c8
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -69,7 +69,6 @@ struct BinaryExpressionTemplate< T1, T2, Operation, VectorExpressionVariable, Ve

   static_assert( std::is_same< typename T1::DeviceType, typename T2::DeviceType >::value, "Attempt to mix operands allocated on different device types." );
   static_assert( IsStaticArrayType< T1 >::value == IsStaticArrayType< T2 >::value, "Attempt to mix static and non-static operands in binary expression templates." );
   static constexpr bool is() { return false; }

   BinaryExpressionTemplate( const T1& a, const T2& b ): op1( a ), op2( b ){}

@@ -111,8 +110,6 @@ struct BinaryExpressionTemplate< T1, T2, Operation, VectorExpressionVariable, Ar
   using DeviceType = typename T1::DeviceType;
   using IndexType = typename T1::IndexType;

   static constexpr bool is() { return false; }

   BinaryExpressionTemplate( const T1& a, const T2& b ): op1( a ), op2( b ){}

   BinaryExpressionTemplate evaluate( const T1& a, const T2& b )
@@ -153,8 +150,6 @@ struct BinaryExpressionTemplate< T1, T2, Operation, ArithmeticVariable, VectorEx
   using DeviceType = typename T2::DeviceType;
   using IndexType = typename T2::IndexType;

   static constexpr bool is() { return false; }

   BinaryExpressionTemplate( const T1& a, const T2& b ): op1( a ), op2( b ){}

   BinaryExpressionTemplate evaluate( const T1& a, const T2& b )
@@ -200,8 +195,6 @@ struct UnaryExpressionTemplate< T1, Operation, Parameter, VectorExpressionVariab
   using DeviceType = typename T1::DeviceType;
   using IndexType = typename T1::IndexType;

   static constexpr bool is() { return false; }

   UnaryExpressionTemplate( const T1& a, const Parameter& p )
   : operand( a ), parameter( p ) {}

@@ -247,8 +240,6 @@ struct UnaryExpressionTemplate< T1, Operation, void, VectorExpressionVariable >
   using DeviceType = typename T1::DeviceType;
   using IndexType = typename T1::IndexType;

   static constexpr bool is() { return false; }

   UnaryExpressionTemplate( const T1& a ): operand( a ){}

   static UnaryExpressionTemplate evaluate( const T1& a )