Remove redundant declarations reported by GCC with -Wredundant-decls option

This commit is contained in:
Yuriy Skalko 2021-09-28 20:20:57 +03:00
parent 7067f48fa7
commit a9119c3fa8
3 changed files with 6 additions and 11 deletions

View File

@ -191,8 +191,6 @@ QString onlyFileName(QString const & str);
QString onlyPath(QString const & str);
QStringList fileFilters(QString const & description);
QString changeExtension(QString const & oldname, QString const & extension);
/// Remove the extension from \p name
QString removeExtension(QString const & name);

View File

@ -439,12 +439,6 @@ namespace ForkedCallQueue {
/// A process in the queue
typedef pair<string, ForkedCall::sigPtr> Process;
/** Add a process to the queue. Processes are forked sequentially
* only one is running at a time.
* Connect to the returned signal and you'll be informed when
* the process has ended.
*/
ForkedCall::sigPtr add(string const & process);
/// in-progress queue
static queue<Process> callQueue_;
@ -459,6 +453,11 @@ void stopCaller();
///
void callback(pid_t, int);
/** Add a process to the queue. Processes are forked sequentially
* only one is running at a time.
* Connect to the returned signal and you'll be informed when
* the process has ended.
*/
ForkedCall::sigPtr add(string const & process)
{
ForkedCall::sigPtr ptr;

View File

@ -143,6 +143,7 @@ namespace xml {
docstring escapeChar(char_type c, XMLStream::EscapeSettings e);
/// Escape the given character, if necessary, to an entity.
/// \param c must be ASCII
docstring escapeChar(char c, XMLStream::EscapeSettings e);
/// Escape a word instead of a single character
@ -151,9 +152,6 @@ docstring escapeString(docstring const & raw, XMLStream::EscapeSettings e=XMLStr
/// cleans \param str for use as an attribute by replacing all non-altnum by "_"
docstring cleanAttr(docstring const & str);
/// \p c must be ASCII
docstring escapeChar(char c, XMLStream::EscapeSettings e);
/// replaces illegal characters from ID attributes
docstring cleanID(docstring const &orig);