summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2019-11-10 12:45:45 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2019-11-10 14:36:40 +0000
commitb757f941070c1ed21acc388ff834b123e9c40595 (patch)
treeb7f2da2eb3964259325da670e4c9517203339ca6
parentf0ff18d35c5cb9aa946038422e6f03e2f915938f (diff)
downloadnetsurf-b757f941070c1ed21acc388ff834b123e9c40595.tar.gz
netsurf-b757f941070c1ed21acc388ff834b123e9c40595.tar.bz2
Utils: ring: Remove unused code.
-rw-r--r--utils/ring.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/utils/ring.h b/utils/ring.h
index b6731338a..55880a695 100644
--- a/utils/ring.h
+++ b/utils/ring.h
@@ -66,24 +66,6 @@
/** Find the element (by hostname) in the given ring, leave it in the
* provided element variable
*/
-#define RING_FINDBYHOST(ring, element, hostname) \
- /*LOG("RING_FINDBYHOST(%s, %s)", #ring, hostname);*/ \
- if (ring) { \
- bool found = false; \
- element = ring; \
- do { \
- if (strcasecmp(element->host, hostname) == 0) { \
- found = true; \
- break; \
- } \
- element = element->r_next; \
- } while (element != ring); \
- if (!found) element = 0; \
- } else element = 0
-
-/** Find the element (by hostname) in the given ring, leave it in the
- * provided element variable
- */
#define RING_FINDBYLWCHOST(ring, element, lwc_hostname) \
/*LOG("RING_FINDBYHOST(%s, %s)", #ring, hostname);*/ \
if (ring) { \
@@ -112,19 +94,6 @@
} while (p != ring); \
} else sizevar = 0
-/** Count the number of elements in the ring which match the provided hostname */
-#define RING_COUNTBYHOST(ringtype, ring, sizevar, hostname) \
- /*LOG("RING_COUNTBYHOST(%s, %s)", #ring, hostname);*/ \
- if (ring) { \
- ringtype *p = ring; \
- sizevar = 0; \
- do { \
- if (strcasecmp(p->host, hostname) == 0) \
- sizevar++; \
- p = p->r_next; \
- } while (p != ring); \
- } else sizevar = 0
-
/** Count the number of elements in the ring which match the provided lwc_hostname */
#define RING_COUNTBYLWCHOST(ringtype, ring, sizevar, lwc_hostname) \
/*LOG("RING_COUNTBYHOST(%s, %s)", #ring, hostname);*/ \