texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: Remove N_CannotGC, it is checked but never set


From: Patrice Dumas
Subject: branch master updated: Remove N_CannotGC, it is checked but never set
Date: Wed, 09 Oct 2024 15:28:24 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 6f1e5023d8 Remove N_CannotGC, it is checked but never set
6f1e5023d8 is described below

commit 6f1e5023d893c3f3763915b1a90add0bcdf9e983
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Oct 9 21:28:13 2024 +0200

    Remove N_CannotGC, it is checked but never set
    
    * info/session.c (gc_file_buffers_and_nodes): do not check N_CannotGC
    in file buffer flag as it is not set anywhere.
---
 ChangeLog      | 7 +++++++
 info/nodes.h   | 1 -
 info/session.c | 4 ----
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4b9ce5f2ee..b7f968be7b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-10-09  Patrice Dumas  <pertusus@free.fr>
+
+       Remove N_CannotGC, it is checked but never set
+
+       * info/session.c (gc_file_buffers_and_nodes): do not check N_CannotGC
+       in file buffer flag as it is not set anywhere.
+
 2024-10-09  Patrice Dumas  <pertusus@free.fr>
 
        Remove N_UpdateTags, it is set but never checked
diff --git a/info/nodes.h b/info/nodes.h
index 6e317b99a0..ba3ac231df 100644
--- a/info/nodes.h
+++ b/info/nodes.h
@@ -58,7 +58,6 @@ typedef struct {
 #define N_TagsIndirect 0x02     /* The tags table was an indirect one. */
 #define N_IsCompressed 0x08     /* The file is compressed on disk. */
 #define N_IsInternal   0x10     /* This node was made by Info. */
-#define N_CannotGC     0x20     /* File buffer cannot be gc'ed. */
 #define N_IsManPage    0x40     /* This node is a manpage. */
 #define N_WasRewritten 0x100    /* NODE->contents can be passed to free(). */ 
 #define N_IsIndex      0x200    /* An index node. */
diff --git a/info/session.c b/info/session.c
index 2a3ee6a325..fee7d83c86 100644
--- a/info/session.c
+++ b/info/session.c
@@ -1775,10 +1775,6 @@ gc_file_buffers_and_nodes (void)
           if ((fb->flags & N_IsCompressed) && !gc_compressed_files)
             continue;
 
-          /* If this file's contents are not gc-able, move on. */
-          if (fb->flags & N_CannotGC)
-            continue;
-
           /* Don't free file buffers corresponding to files that aren't there 
              any more, because a node may still refer to them. */
           if (fb->flags & N_Gone)



reply via email to

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