Commit 40f9a89a authored by Francois Gygi's avatar Francois Gygi
Browse files

Remove unused byteswap_double from wf handler

parent 7e7fa4da
......@@ -42,23 +42,6 @@ WavefunctionHandler::WavefunctionHandler(Wavefunction& wf,
////////////////////////////////////////////////////////////////////////////////
WavefunctionHandler::~WavefunctionHandler() {}
////////////////////////////////////////////////////////////////////////////////
void WavefunctionHandler::byteswap_double(size_t n, double* x)
{
if (n==0) return;
unsigned char* c = (unsigned char*) x;
while ( n-- > 0 )
{
unsigned char tmp;
tmp = c[7]; c[7] = c[0]; c[0] = tmp;
tmp = c[6]; c[6] = c[1]; c[1] = tmp;
tmp = c[5]; c[5] = c[2]; c[2] = tmp;
tmp = c[4]; c[4] = c[3]; c[3] = tmp;
c+=8;
}
}
////////////////////////////////////////////////////////////////////////////////
void WavefunctionHandler::startElement(const XMLCh* const uri,
const XMLCh* const localname, const XMLCh* const qname,
......
......@@ -42,8 +42,6 @@ class WavefunctionHandler : public StructureHandler
double current_kx, current_ky, current_kz, current_weight;
int current_size, last_size;
void byteswap_double(size_t n, double* x);
public:
// Start of the root element in the structure being handled
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment