Skip to content

Commit

Permalink
Re #5564 Combined the two validateInputs method with default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
josephframsay committed Jul 19, 2017
1 parent 57b8369 commit e453268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
4 changes: 1 addition & 3 deletions Framework/Algorithms/inc/MantidAlgorithms/WorkspaceJoiners.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ class DLLExport WorkspaceJoiners : public API::Algorithm {

using Mantid::API::Algorithm::validateInputs;
void validateInputs(const API::MatrixWorkspace &ws1,
const API::MatrixWorkspace &ws2, const bool checkBinning);
void validateInputs(const API::MatrixWorkspace &ws1,
const API::MatrixWorkspace &ws2);
const API::MatrixWorkspace &ws2, const bool checkBinning = true);
void getMinMax(const API::MatrixWorkspace &ws, specnum_t &min,
specnum_t &max);

Expand Down
14 changes: 1 addition & 13 deletions Framework/Algorithms/src/WorkspaceJoiners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ MatrixWorkspace_sptr WorkspaceJoiners::execEvent() {
* @param ws1 :: The first input workspace
* @param ws2 :: The second input workspace
* @param checkBinning :: A flag for whether to check that the workspaces have
* compatible binning
* compatible binning (default true)
* @throw std::invalid_argument If the workspaces are not compatible
*/
void Mantid::Algorithms::WorkspaceJoiners::validateInputs(
Expand Down Expand Up @@ -222,18 +222,6 @@ void Mantid::Algorithms::WorkspaceJoiners::validateInputs(
}
}

/** Checks that the two input workspace have common binning & size, the same
* instrument & unit.
* Also calls the checkForOverlap method.
* @param ws1 :: The first input workspace
* @param ws2 :: The second input workspace
* @throw std::invalid_argument If the workspaces are not compatible
*/
void WorkspaceJoiners::validateInputs(const MatrixWorkspace &ws1,
const MatrixWorkspace &ws2) {
validateInputs(ws1, ws2, true);
}

/**
* Determine the minimum and maximum spectra ids.
*
Expand Down

0 comments on commit e453268

Please sign in to comment.