Skip to content
Snippets Groups Projects
Commit 3234b74b authored by Stephen's avatar Stephen Committed by Stephen Smith
Browse files

Removing unused code

parent 0e6ede32
No related branches found
No related tags found
No related merge requests found
......@@ -858,10 +858,6 @@ public:
%MethodCode
sipRes = boost::python::to_python_value<const Mantid::API::IFunction_sptr &>()(sipCpp->getFunctionByIndex(*a0));
%End
SIP_PYOBJECT getFunctionWithIndex(const int index);
%MethodCode
sipRes = boost::python::to_python_value<const Mantid::API::IFunction_sptr &>()(sipCpp->getFunctionWithIndex(a0));
%End
signals:
void functionStructureChanged();
void parameterChanged(const QString &funcIndex, const QString &paramName);
......
......@@ -63,8 +63,6 @@ public:
bool hasFunction() const;
/// Return a function with specified index
IFunction_sptr getFunctionByIndex(const QString &index);
/// Return a function with specified index
IFunction_sptr getFunctionWithIndex(const int index);
/// Return index of the current function, if one is selected
boost::optional<QString> currentFunctionIndex();
/// Update the function parameter value
......
......@@ -36,7 +36,6 @@ public:
QString getFunctionString() const;
IFunction_sptr getFunction() const;
IFunction_sptr getFunctionByIndex(const QString &index);
IFunction_sptr getFunctionWithIndex(const int index);
IFunction_sptr getFitFunction() const;
QString getFitFunctionString() const;
bool hasFunction() const;
......
......@@ -92,15 +92,6 @@ void FunctionBrowser::setFunction(IFunction_sptr fun) {
IFunction_sptr FunctionBrowser::getFunctionByIndex(const QString &index) {
return m_presenter->getFunctionByIndex(index);
}
/**
* Return function at specified function index (e.g. f0.)
* @param index :: Index of the function, or empty string for top-level function
* @return Function at index, or null pointer if not found
*/
IFunction_sptr FunctionBrowser::getFunctionWithIndex(const int index) {
return m_presenter->getFunctionWithIndex(index);
}
/**
* Updates the function parameter value
* @param paramName :: Fully qualified parameter name (includes function index)
......
......@@ -79,11 +79,6 @@ FunctionMultiDomainPresenter::getFunctionByIndex(const QString &index) {
return getFunctionWithPrefix(index, m_model->getCurrentFunction());
}
IFunction_sptr
FunctionMultiDomainPresenter::getFunctionWithIndex(const int index) {
return m_model->getSingleFunction(index);
}
void FunctionMultiDomainPresenter::setParameter(const QString &paramName,
double value) {
m_model->setParameter(paramName, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment