Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): remove unused macro Hash_Size



details:   https://anonhg.NetBSD.org/src/rev/f4f78bb9e9de
branches:  trunk
changeset: 937034:f4f78bb9e9de
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Aug 06 17:22:15 2020 +0000

description:
make(1): remove unused macro Hash_Size

diffstat:

 usr.bin/make/hash.h |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (22 lines):

diff -r 2f89404eab70 -r f4f78bb9e9de usr.bin/make/hash.h
--- a/usr.bin/make/hash.h       Thu Aug 06 16:23:52 2020 +0000
+++ b/usr.bin/make/hash.h       Thu Aug 06 17:22:15 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hash.h,v 1.16 2020/08/01 14:47:49 rillig Exp $ */
+/*     $NetBSD: hash.h,v 1.17 2020/08/06 17:22:15 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -133,12 +133,6 @@
 
 #define Hash_SetValue(h, val) ((h)->clientPtr = (val))
 
-/*
- * Hash_Size(n) returns the number of words in an object of n bytes
- */
-
-#define        Hash_Size(n)    (((n) + sizeof (int) - 1) / sizeof (int))
-
 void Hash_InitTable(Hash_Table *, int);
 void Hash_DeleteTable(Hash_Table *);
 Hash_Entry *Hash_FindEntry(Hash_Table *, const char *);



Home | Main Index | Thread Index | Old Index