Commit 94a6cfff authored by Laurent Belcour's avatar Laurent Belcour

Removing all the unused parameter warning in the core

parent fae9f2f9
......@@ -132,7 +132,7 @@ class arguments
}
}
//! \brief update the value \a val stored under key \a key
bool update(const std::string& key, const std::string& val)
void update(const std::string& key, const std::string& val)
{
_map[key] = val;
}
......
......@@ -124,23 +124,23 @@ class data_params : public data
save(std::string("cluster.gnuplot"));
}
virtual vec value(vec in, vec out) const
virtual vec value(vec, vec) const
{
NOT_IMPLEMENTED();
}
virtual vec value(vec in) const
virtual vec value(vec) const
{
NOT_IMPLEMENTED();
}
// Load data from a file
virtual void load(const std::string& filename)
virtual void load(const std::string&)
{
std::cerr << "<<ERROR>> this data type cannot load data" << std::endl;
throw;
}
virtual void load(const std::string& filename, const arguments& args)
virtual void load(const std::string&, const arguments&)
{
std::cerr << "<<ERROR>> this data type cannot load data" << std::endl;
throw;
......
......@@ -97,7 +97,7 @@ void function::save_header(std::ostream& out, const arguments& args) const
//! \brief save function specific data. This has no use for ALTA export
//! but allows to factorize the code in the C++ or matlab export by
//! defining function calls that are common to all the plugins.
void function::save_body(std::ostream& out, const arguments& args) const
void function::save_body(std::ostream&, const arguments&) const
{
......@@ -106,7 +106,7 @@ void function::save_body(std::ostream& out, const arguments& args) const
//! \brief save object specific information. For an ALTA export the
//! coefficients will be exported. For a C++ or matlab export, the call
//! to the associated function will be done.
void function::save_call(std::ostream& out, const arguments& args) const
void function::save_call(std::ostream&, const arguments&) const
{
}
......
......@@ -38,7 +38,7 @@ class function : public parametrized
//! \details
//! Can be used to set the diffuse component of the function for
//! example.
virtual void bootstrap(const data* d, const arguments& args) {}
virtual void bootstrap(const data*, const arguments&) {}
//! Provide the dimension of the input space of the function
virtual int dimX() const { return _nX ; }
......
......@@ -69,7 +69,7 @@ template<typename T> T open_library(const std::string& filename, const char* fun
// Create the object, parse the argument and load all the plugins
plugins_manager::plugins_manager(const arguments& args)
plugins_manager::plugins_manager(const arguments&)
{
/*
QDir pluginsDir;
......@@ -418,7 +418,7 @@ fitter* plugins_manager::get_fitter(const std::string& n)
}
void plugins_manager::check_compatibility(data*& d, function*& f,
const arguments& args)
const arguments&)
{
if(d->input_parametrization() == params::UNKNOWN_INPUT &&
f->input_parametrization() == params::UNKNOWN_INPUT)
......
......@@ -24,7 +24,7 @@ rational_function_1d::rational_function_1d(const vec& a,
{
}
void rational_function_1d::load(std::istream& in)
void rational_function_1d::load(std::istream&)
{
}
......@@ -443,7 +443,7 @@ void rational_function::load(std::istream& in)
}
//! \todo it should handle parametrization
void rational_function::save_matlab(const std::string& filename, const arguments& args) const
void rational_function::save_matlab(const std::string& filename, const arguments&) const
{
std::ofstream file(filename.c_str(), std::ios_base::trunc);
......@@ -538,7 +538,7 @@ void rational_function::save_matlab(const std::string& filename, const arguments
}
//! \todo it should handle parametrization
void rational_function::save_cpp(const std::string& filename, const arguments& args) const
void rational_function::save_cpp(const std::string& filename, const arguments&) const
{
std::ofstream file(filename.c_str(), std::ios_base::trunc);
......@@ -651,7 +651,7 @@ void rational_function::save_cpp(const std::string& filename, const arguments& a
}
void rational_function::save_gnuplot(const std::string& filename, const data* d, const arguments& args) const
void rational_function::save_gnuplot(const std::string& filename, const data* d, const arguments&) const
{
std::ofstream file(filename.c_str(), std::ios_base::trunc);
for(int i=0; i<d->size(); ++i)
......@@ -672,7 +672,7 @@ void rational_function::save_gnuplot(const std::string& filename, const data* d,
file.close();
}
void rational_function::save_call(std::ostream& out, const arguments& args) const
void rational_function::save_call(std::ostream& out, const arguments&) const
{
out << "#FUNC rational_function" << std::endl;
out << "#NP " << np << std::endl ;
......
......@@ -33,11 +33,11 @@ class vertical_segment : public data
// Acces to data
virtual vec get(int i) const ;
virtual vec operator[](int i) const ;
virtual vec value(vec in, vec out) const
virtual vec value(vec, vec) const
{
NOT_IMPLEMENTED();
}
virtual vec value(vec in) const
virtual vec value(vec) const
{
NOT_IMPLEMENTED();
}
......
Markdown is supported
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