commit a9119c3fa80746bb22de91654e958ede01029cac
Author: Yuriy Skalko <[email protected]>
Date:   Tue Sep 28 20:20:57 2021 +0300

    Remove redundant declarations reported by GCC with -Wredundant-decls option
---
 src/frontends/qt/qt_helpers.h |    2 --
 src/support/ForkedCalls.cpp   |   11 +++++------
 src/xml.h                     |    4 +---
 3 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/frontends/qt/qt_helpers.h b/src/frontends/qt/qt_helpers.h
index 73f7db9..08d50fa 100644
--- a/src/frontends/qt/qt_helpers.h
+++ b/src/frontends/qt/qt_helpers.h
@@ -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);
 
diff --git a/src/support/ForkedCalls.cpp b/src/support/ForkedCalls.cpp
index 387f856..e6f5a8e 100644
--- a/src/support/ForkedCalls.cpp
+++ b/src/support/ForkedCalls.cpp
@@ -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;
diff --git a/src/xml.h b/src/xml.h
index b3569ba..bf72fac 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -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);
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to