texinfo-commits
[Top][All Lists]
Advanced

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

[5604] window_physical_lines removed


From: Gavin D. Smith
Subject: [5604] window_physical_lines removed
Date: Sun, 25 May 2014 18:51:23 +0000

Revision: 5604
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5604
Author:   gavin
Date:     2014-05-25 18:51:22 +0000 (Sun, 25 May 2014)
Log Message:
-----------
window_physical_lines removed

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/window.c
    trunk/info/window.h

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2014-05-25 18:46:50 UTC (rev 5603)
+++ trunk/ChangeLog     2014-05-25 18:51:22 UTC (rev 5604)
@@ -6,6 +6,8 @@
        * info/session.c (initialize_window_session): Don't set
        window_deletion_notifier to forget_window_and_nodes.
 
+       * info/window.c (window_physical_lines): Delete unused.
+
 2014-05-25  Gavin Smith  <address@hidden>
        
        * info/session.c (info_scroll_forward, info_scroll_backward)

Modified: trunk/info/window.c
===================================================================
--- trunk/info/window.c 2014-05-25 18:46:50 UTC (rev 5603)
+++ trunk/info/window.c 2014-05-25 18:51:22 UTC (rev 5604)
@@ -715,26 +715,6 @@
     win->flags &= ~flag;
 }
 
-/* Quickly guess the approximate number of lines that NODE would
-   take to display.  This really only counts carriage returns. */
-/* FIXME: Not used anywhere. */
-int
-window_physical_lines (NODE *node)
-{
-  register int i, lines;
-  char *contents;
-
-  if (!node)
-    return 0;
-
-  contents = node->contents;
-  for (i = 0, lines = 1; i < node->nodelen; i++)
-    if (contents[i] == '\n')
-      lines++;
-
-  return lines;
-}
-
 
 /* Called by process_node_text. */
 static int

Modified: trunk/info/window.h
===================================================================
--- trunk/info/window.h 2014-05-25 18:46:50 UTC (rev 5603)
+++ trunk/info/window.h 2014-05-25 18:51:22 UTC (rev 5604)
@@ -220,10 +220,6 @@
    The echo area is cleared immediately. */
 extern void window_clear_echo_area (void);
 
-/* Quickly guess the approximate number of lines to that NODE would
-   take to display.  This really only counts carriage returns. */
-extern int window_physical_lines (NODE *node);
-
 /* Calculate a list of line starts for the node belonging to WINDOW.  The line
    starts are offsets within WINDOW->node. */
 extern void recalculate_line_starts (WINDOW *window);




reply via email to

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