remove unused code

This commit is contained in:
Christian Zimmermann 2021-08-06 10:54:11 +02:00
parent 8b64d2c0d5
commit 7aa4b18d15
2 changed files with 6 additions and 28 deletions

View file

@ -601,18 +601,21 @@ namespace CNORXZ
return this->template asx<identity<T>,PointerAccess<T>>(in,i); return this->template asx<identity<T>,PointerAccess<T>>(in,i);
} }
template <typename T>
using xplus = plus<T>;
template <typename T, class... Ranges> template <typename T, class... Ranges>
template <class OpClass> template <class OpClass>
auto OperationRoot<T,Ranges...>::plus(const OpClass& in) const 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 <typename T, class... Ranges>
template <class OpClass, class Index> template <class OpClass, class Index>
auto OperationRoot<T,Ranges...>::plus(const OpClass& in, const std::shared_ptr<Index>& i) const 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> template <bool VABLE, class Func, typename TarOp, class OpClass>
@ -644,7 +647,6 @@ namespace CNORXZ
template <class OpClass> template <class OpClass>
OperationRoot<T,Ranges...>& OperationRoot<T,Ranges...>::operator=(const OpClass& in) OperationRoot<T,Ranges...>& OperationRoot<T,Ranges...>::operator=(const OpClass& in)
{ {
//asx<identity<T>>(in)();
vexec<OpClass::VABLE,identity<T>>(*this,in); vexec<OpClass::VABLE,identity<T>>(*this,in);
return *this; return *this;
} }
@ -653,8 +655,7 @@ namespace CNORXZ
template <class OpClass> template <class OpClass>
OperationRoot<T,Ranges...>& OperationRoot<T,Ranges...>::operator+=(const OpClass& in) OperationRoot<T,Ranges...>& OperationRoot<T,Ranges...>::operator+=(const OpClass& in)
{ {
//asx<xxxplus<T>>(in)(); vexec<OpClass::VABLE,xplus<T>>(*this,in);
vexec<OpClass::VABLE,xxxplus<T>>(*this,in);
return *this; return *this;
} }

View file

@ -160,29 +160,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 // static polymorphism
template <class AccessClass> template <class AccessClass>