Skip to content

Commit

Permalink
Refs #11515 Remove dead function from FilterEventsByLogValuePreNexus
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Apr 13, 2015
1 parent b653021 commit 3617043
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Expand Up @@ -138,8 +138,6 @@ class DLLExport FilterEventsByLogValuePreNexus
void runLoadInstrument(const std::string &eventfilename,
API::MatrixWorkspace_sptr localWorkspace);

inline void fixPixelId(PixelType &pixel, uint32_t &period) const;

void procEvents(DataObjects::EventWorkspace_sptr &workspace);

void procEventsLinear(DataObjects::EventWorkspace_sptr &workspace,
Expand Down
Expand Up @@ -794,26 +794,6 @@ void FilterEventsByLogValuePreNexus::runLoadInstrument(
localWorkspace->populateInstrumentParameters();
}

//-----------------------------------------------------------------------------
/** Turn a pixel id into a "corrected" pixelid and period.
*/
inline void FilterEventsByLogValuePreNexus::fixPixelId(PixelType &pixel,
uint32_t &period) const {
// FIXME - This function is not used at all
throw std::runtime_error("Function fixPixelId is not verified. ");

if (!this->using_mapping_file) { // nothing to do here
period = 0;
return;
}

PixelType unmapped_pid = pixel % this->numpixel;
period = (pixel - unmapped_pid) / this->numpixel;
pixel = this->pixelmap[unmapped_pid];

return;
}

//----------------------------------------------------------------------------------------------
/** Process the event file properly.
* @param workspace :: EventWorkspace to write to.
Expand Down

0 comments on commit 3617043

Please sign in to comment.