remove unused code
This commit is contained in:
parent
8b64d2c0d5
commit
7aa4b18d15
2 changed files with 6 additions and 28 deletions
|
@ -601,18 +601,21 @@ namespace CNORXZ
|
|||
return this->template asx<identity<T>,PointerAccess<T>>(in,i);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
using xplus = plus<T>;
|
||||
|
||||
template <typename T, class... Ranges>
|
||||
template <class OpClass>
|
||||
auto OperationRoot<T,Ranges...>::plus(const OpClass& in) const
|
||||
{
|
||||
return this->template asx<xxxplus<T>,PointerAccess<T>>(in);
|
||||
return this->template asx<xplus<T>,PointerAccess<T>>(in);
|
||||
}
|
||||
|
||||
template <typename T, class... Ranges>
|
||||
template <class OpClass, class Index>
|
||||
auto OperationRoot<T,Ranges...>::plus(const OpClass& in, const std::shared_ptr<Index>& i) const
|
||||
{
|
||||
return this->template asx<xxxplus<T>,PointerAccess<T>>(in,i);
|
||||
return this->template asx<xplus<T>,PointerAccess<T>>(in,i);
|
||||
}
|
||||
|
||||
template <bool VABLE, class Func, typename TarOp, class OpClass>
|
||||
|
@ -644,7 +647,6 @@ namespace CNORXZ
|
|||
template <class OpClass>
|
||||
OperationRoot<T,Ranges...>& OperationRoot<T,Ranges...>::operator=(const OpClass& in)
|
||||
{
|
||||
//asx<identity<T>>(in)();
|
||||
vexec<OpClass::VABLE,identity<T>>(*this,in);
|
||||
return *this;
|
||||
}
|
||||
|
@ -653,8 +655,7 @@ namespace CNORXZ
|
|||
template <class OpClass>
|
||||
OperationRoot<T,Ranges...>& OperationRoot<T,Ranges...>::operator+=(const OpClass& in)
|
||||
{
|
||||
//asx<xxxplus<T>>(in)();
|
||||
vexec<OpClass::VABLE,xxxplus<T>>(*this,in);
|
||||
vexec<OpClass::VABLE,xplus<T>>(*this,in);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
@ -161,29 +161,6 @@ namespace CNORXZ
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
template <typename T, class F>
|
||||
struct IVAccess
|
||||
{
|
||||
static constexpr bool ISSTATIC = true;
|
||||
typedef typename VType<T>::type value_type;
|
||||
typedef T in_type;
|
||||
typedef VFunc<F> Func;
|
||||
static constexpr size_t VSIZE = sizeof(value_type) / sizeof(in_type);
|
||||
|
||||
template <typename Op, class ExtType>
|
||||
static inline void f(T*& t, size_t pos, const Op& op, ExtType e)
|
||||
{
|
||||
//VCHECK(pos);
|
||||
VFunc<F>::selfApply(*reinterpret_cast<value_type*>(t+pos),op.template vget<value_type>(e));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
template <typename T>
|
||||
using xxxplus = plus<T>;
|
||||
|
||||
|
||||
// static polymorphism
|
||||
template <class AccessClass>
|
||||
class AccessTemplate
|
||||
|
|
Loading…
Reference in a new issue