groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 08/26: [refer]: Refactor: drop unused function.


From: G. Branden Robinson
Subject: [groff] 08/26: [refer]: Refactor: drop unused function.
Date: Sun, 15 May 2022 05:07:53 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit f6eda6949a8fbb384bad5af410a0fdca4d6417ab
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Thu May 5 10:23:42 2022 -0500

    [refer]: Refactor: drop unused function.
    
    * src/preproc/refer/command.cpp (process_commands): Drop definition.
    
    * src/preproc/refer/command.h (process_commands): Drop declaration.
---
 ChangeLog                     | 9 +++++++++
 src/preproc/refer/command.cpp | 7 -------
 src/preproc/refer/command.h   | 1 -
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1cff09f6..255b591d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-05-05  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [refer]: Refactor: drop unused function.
+
+       * src/preproc/refer/command.cpp (process_commands): Drop
+       definition.
+       * src/preproc/refer/command.h (process_commands): Drop
+       declaration.
+
 2022-05-04  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/preproc/refer/refer.cpp (do_file): Fix another off-by-one
diff --git a/src/preproc/refer/command.cpp b/src/preproc/refer/command.cpp
index 3f8c4741..c7014b62 100644
--- a/src/preproc/refer/command.cpp
+++ b/src/preproc/refer/command.cpp
@@ -793,13 +793,6 @@ static void command_loop()
   }
 }
 
-void process_commands(const char *file)
-{
-  input_stack::init();
-  input_stack::push_file(file);
-  command_loop();
-}
-
 void process_commands(string &s, const char *file, int lineno)
 {
   input_stack::init();
diff --git a/src/preproc/refer/command.h b/src/preproc/refer/command.h
index 6844839f..db850f4b 100644
--- a/src/preproc/refer/command.h
+++ b/src/preproc/refer/command.h
@@ -17,7 +17,6 @@ for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
-void process_commands(const char *file);
 void process_commands(string &s, const char *file, int lineno);
 
 extern int have_bibliography;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]