Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

TS-1820 Unify the use of UNUSED, and eliminate trash

  • Loading branch information...
commit 3840df1827bb9af3fad92f36a726c485cd932445 1 parent 21515f6
@zwoop zwoop authored
Showing with 41 additions and 303 deletions.
  1. +3 −3 example/remap/remap.cc
  2. +7 −7 iocore/cache/CacheWrite.cc
  3. +0 −2  iocore/cluster/ClusterHash.cc
  4. +0 −2  iocore/dns/DNSConnection.cc
  5. +0 −2  iocore/eventsystem/IOBuffer.cc
  6. +0 −1  iocore/eventsystem/UnixEThread.cc
  7. +0 −1  iocore/eventsystem/UnixEvent.cc
  8. +0 −2  iocore/net/Connection.cc
  9. +0 −1  iocore/net/UnixConnection.cc
  10. +1 −0  lib/records/P_RecCore.cc
  11. +0 −1  lib/ts/CompileParseRules.cc
  12. +0 −1  lib/ts/Diags.cc
  13. +0 −1  lib/ts/Diags.h
  14. +0 −2  lib/ts/HostLookup.cc
  15. +0 −1  lib/ts/Makefile.am
  16. +0 −1  lib/ts/ParseRules.h
  17. +0 −1  lib/ts/RawHashTable.cc
  18. +0 −1  lib/ts/Regression.cc
  19. +0 −1  lib/ts/TestHttpHeader.cc
  20. +0 −2  lib/ts/TextBuffer.cc
  21. +0 −1  lib/ts/Tokenizer.cc
  22. +0 −2  lib/ts/Version.cc
  23. +0 −1  lib/ts/ink_args.cc
  24. +0 −1  lib/ts/ink_assert.cc
  25. +0 −1  lib/ts/ink_base64.cc
  26. +0 −1  lib/ts/ink_code.cc
  27. +0 −1  lib/ts/ink_defs.cc
  28. +12 −0 lib/ts/ink_defs.h
  29. +0 −9 lib/ts/ink_error.h
  30. +0 −1  lib/ts/ink_hash_table.cc
  31. +2 −3 lib/ts/ink_hrtime.cc
  32. +0 −2  lib/ts/ink_llqueue.h
  33. +1 −1  lib/ts/ink_mutex.cc
  34. +0 −1  lib/ts/ink_queue.h
  35. +0 −1  lib/ts/ink_queue_utils.cc
  36. +1 −0  lib/ts/ink_res_init.cc
  37. +1 −0  lib/ts/ink_res_mkquery.cc
  38. +0 −2  lib/ts/ink_sock.cc
  39. +0 −1  lib/ts/ink_sprintf.cc
  40. +0 −1  lib/ts/ink_string++.cc
  41. +0 −4 lib/ts/ink_syslog.cc
  42. +0 −1  lib/ts/ink_thread.cc
  43. +0 −1  lib/ts/ink_time.cc
  44. +0 −1  lib/ts/ink_time.h
  45. +0 −55 lib/ts/ink_unused.h
  46. +0 −1  lib/ts/libts.h
  47. +0 −1  lib/ts/llqueue.cc
  48. +0 −1  lib/ts/mkdfa.c
  49. +0 −1  lib/ts/test_atomic.cc
  50. +0 −3  lib/ts/test_freelist.cc
  51. +0 −2  mgmt/AddConfigFilesHere.cc
  52. +0 −1  mgmt/LocalManager.cc
  53. +0 −1  mgmt/MultiFile.cc
  54. +1 −0  mgmt/api/remote/APITestCliRemote.cc
  55. +1 −0  mgmt/api/remote/CoreAPIRemote.cc
  56. +1 −0  mgmt/api/remote/NetworkUtilsRemote.cc
  57. +1 −0  mgmt/cli/UtilCmds.cc
  58. +1 −3 mgmt/cli/cliParseArg.cc
  59. +1 −0  mgmt/cli/hashtable.cc
  60. +1 −0  mgmt/cli/processArgument.cc
  61. +0 −2  mgmt/cluster/VMap.cc
  62. +0 −2  mgmt/preparse/IPRange.cc
  63. +0 −1  mgmt/preparse/SocksParser.cc
  64. +0 −1  mgmt/stats/StatProcessor.cc
  65. +0 −1  mgmt/utils/EnvBlock.cc
  66. +0 −1  mgmt/utils/ExpandingArray.cc
  67. +0 −3  mgmt/utils/MgmtUtils.cc
  68. +1 −0  mgmt/utils/XmlUtils.cc
  69. +0 −1  mgmt/web2/WebHttp.cc
  70. +0 −1  mgmt/web2/WebHttpMessage.cc
  71. +0 −1  mgmt/web2/WebOverview.cc
  72. +0 −1  mgmt/web2/WebUtils.cc
  73. +0 −4 plugins/experimental/header_rewrite/condition.cc
  74. +0 −3  plugins/experimental/header_rewrite/condition.h
  75. +0 −4 plugins/experimental/header_rewrite/conditions.cc
  76. +0 −3  plugins/experimental/header_rewrite/conditions.h
  77. +0 −3  plugins/experimental/header_rewrite/factory.cc
  78. +0 −3  plugins/experimental/header_rewrite/factory.h
  79. +3 −3 plugins/experimental/header_rewrite/header_rewrite.cc
  80. +2 −2 plugins/experimental/header_rewrite/lulu.h
  81. +0 −4 plugins/experimental/header_rewrite/matcher.cc
  82. +0 −4 plugins/experimental/header_rewrite/matcher.h
  83. +0 −4 plugins/experimental/header_rewrite/operator.cc
  84. +0 −3  plugins/experimental/header_rewrite/operator.h
  85. +0 −4 plugins/experimental/header_rewrite/operators.cc
  86. +0 −3  plugins/experimental/header_rewrite/operators.h
  87. +0 −3  plugins/experimental/header_rewrite/parser.cc
  88. +0 −4 plugins/experimental/header_rewrite/parser.h
  89. +0 −4 plugins/experimental/header_rewrite/resources.cc
  90. +0 −4 plugins/experimental/header_rewrite/resources.h
  91. +0 −3  plugins/experimental/header_rewrite/ruleset.cc
  92. +0 −4 plugins/experimental/header_rewrite/ruleset.h
  93. +0 −3  plugins/experimental/header_rewrite/statement.cc
  94. +0 −3  plugins/experimental/header_rewrite/statement.h
  95. +0 −3  plugins/experimental/header_rewrite/value.h
  96. +0 −4 plugins/experimental/hipes/hipes.cc
  97. +0 −1  plugins/header_filter/lulu.h
  98. +0 −4 plugins/regex_remap/regex_remap.cc
  99. +0 −1  proxy/AbstractBuffer.cc
  100. +0 −1  proxy/CacheControl.cc
  101. +0 −3  proxy/ControlBase.cc
  102. +0 −1  proxy/ControlMatcher.cc
  103. +0 −3  proxy/Error.cc
  104. +0 −3  proxy/ICP.cc
  105. +0 −2  proxy/ICPProcessor.cc
  106. +0 −2  proxy/ICPStats.cc
  107. +0 −4 proxy/ParentSelection.cc
  108. +0 −1  proxy/ReverseProxy.cc
  109. +0 −1  proxy/TestClock.cc
  110. +0 −2  proxy/TestClusterHash.cc
  111. +0 −1  proxy/TestDNS.cc
  112. +0 −2  proxy/TestHook.cc
  113. +0 −2  proxy/TestPreProc.cc
  114. +0 −3  proxy/TestProxy.cc
  115. +0 −1  proxy/TestRegex.cc
  116. +0 −1  proxy/TestSimpleProxy.cc
  117. +0 −2  proxy/congest/CongestionDB.cc
  118. +0 −1  proxy/http/HttpDebugNames.cc
  119. +0 −1  proxy/http/TestHttpTransact.cc
  120. +0 −1  proxy/http/TestUrl.cc
  121. +0 −1  proxy/http/test_socket_close.cc
  122. +0 −1  proxy/http/testheaders.cc
  123. +0 −2  proxy/logcat.cc
  124. +0 −3  proxy/logging/LogAccess.cc
  125. +0 −2  proxy/logging/LogAccessHttp.cc
  126. +0 −1  proxy/logging/LogAccessTest.cc
  127. +0 −3  proxy/logging/LogBuffer.cc
  128. +0 −1  proxy/logging/LogFile.cc
  129. +0 −2  proxy/logging/LogFormat.cc
  130. +0 −2  proxy/logging/LogSock.cc
  131. +0 −3  proxy/logging/LogUtils.cc
  132. +0 −1  proxy/logstats.cc
  133. +0 −1  proxy/sac.cc
View
6 example/remap/remap.cc
@@ -44,10 +44,10 @@
#include <sys/time.h>
#include <sys/resource.h>
-#include <ts/ts.h>
-#include <ts/remap.h>
+#include "ink_defs.h"
+#include "ts/ts.h"
+#include "ts/remap.h"
-#include "ink_unused.h"
class remap_entry
{
View
14 iocore/cache/CacheWrite.cc
@@ -831,7 +831,7 @@ agg_copy(char *p, CacheVC *vc)
// move data
if (vc->write_len) {
{
- ProxyMutex RELEASE_UNUSED *mutex = vc->vol->mutex;
+ ProxyMutex NOWARN_UNUSED_VAR *mutex = vc->vol->mutex;
ink_debug_assert(mutex->thread_holding == this_ethread());
CACHE_DEBUG_SUM_DYN_STAT(cache_write_bytes_stat, vc->write_len);
}
@@ -870,12 +870,12 @@ agg_copy(char *p, CacheVC *vc)
// for evacuated documents, copy the data, and update directory
Doc *doc = (Doc *) vc->buf->data();
int l = vc->vol->round_to_approx_size(doc->len);
- {
- ProxyMutex RELEASE_UNUSED *mutex = vc->vol->mutex;
- ink_debug_assert(mutex->thread_holding == this_ethread());
- CACHE_DEBUG_INCREMENT_DYN_STAT(cache_gc_frags_evacuated_stat);
- CACHE_DEBUG_SUM_DYN_STAT(cache_gc_bytes_evacuated_stat, l);
- }
+ ProxyMutex NOWARN_UNUSED_VAR *mutex = vc->vol->mutex;
+
+ ink_debug_assert(mutex->thread_holding == this_ethread());
+ CACHE_DEBUG_INCREMENT_DYN_STAT(cache_gc_frags_evacuated_stat);
+ CACHE_DEBUG_SUM_DYN_STAT(cache_gc_bytes_evacuated_stat, l);
+
doc->sync_serial = vc->vol->header->sync_serial;
doc->write_serial = vc->vol->header->write_serial;
View
2  iocore/cluster/ClusterHash.cc
@@ -21,12 +21,10 @@
limitations under the License.
*/
-#include "ink_unused.h"
/****************************************************************************
ClusterHash.cc
****************************************************************************/
-
#include "P_Cluster.h"
//
View
2  iocore/dns/DNSConnection.cc
@@ -27,8 +27,6 @@
Commonality across all platforms -- move out as required.
**************************************************************************/
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "P_DNS.h"
#include "P_DNSConnection.h"
#include "P_DNSProcessor.h"
View
2  iocore/eventsystem/IOBuffer.cc
@@ -21,12 +21,10 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/**************************************************************************
UIOBuffer.cc
**************************************************************************/
-
#include "P_EventSystem.h"
//
View
1  iocore/eventsystem/UnixEThread.cc
@@ -26,7 +26,6 @@
// The EThread Class
//
/////////////////////////////////////////////////////////////////////
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "P_EventSystem.h"
#if TS_HAS_EVENTFD
View
1  iocore/eventsystem/UnixEvent.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/****************************************************************************
Event.cc
View
2  iocore/net/Connection.cc
@@ -27,8 +27,6 @@
Commonality across all platforms -- move out as required.
**************************************************************************/
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "libts.h"
#include "P_Net.h"
View
1  iocore/net/UnixConnection.cc
@@ -25,7 +25,6 @@
Connections
**************************************************************************/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "P_Net.h"
#define SET_NO_LINGER
View
1  lib/records/P_RecCore.cc
@@ -23,6 +23,7 @@
#include "TextBuffer.h"
#include "Tokenizer.h"
+#include "ink_defs.h"
#include "ink_string.h"
#include "P_RecCompatibility.h"
View
1  lib/ts/CompileParseRules.cc
@@ -37,7 +37,6 @@ char tparseRulesCTypeToLower[256];
#include <stdio.h>
#include <ctype.h>
#include "ink_string.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
static char *
uint_to_binary(unsigned int u)
View
1  lib/ts/Diags.cc
@@ -36,7 +36,6 @@
#include "ink_platform.h"
#include "ink_port.h"
-#include "ink_unused.h"
#include "ink_error.h"
#include "ink_assert.h"
#include "ink_time.h"
View
1  lib/ts/Diags.h
@@ -36,7 +36,6 @@
#define __DIAGS_H___
#include <stdarg.h>
-#include "ink_unused.h"
#include "ink_bool.h"
#include "ink_error.h"
#include "ink_mutex.h"
View
2  lib/ts/HostLookup.cc
@@ -27,8 +27,6 @@
*
*
****************************************************************************/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include "libts.h"
#include "HostLookup.h"
#include "MatcherUtils.h"
View
1  lib/ts/Makefile.am
@@ -114,7 +114,6 @@ libtsutil_la_SOURCES = \
ink_time.cc \
ink_time.h \
inktomi++.h \
- ink_unused.h \
fastlz.h \
fastlz.c \
I_Version.h \
View
1  lib/ts/ParseRules.h
@@ -26,7 +26,6 @@
#include "ink_bool.h"
#include "ink_port.h"
-#include "ink_unused.h"
#include "Resource.h"
#include <string.h>
View
1  lib/ts/RawHashTable.cc
@@ -29,5 +29,4 @@
*/
#include "RawHashTable.h"
-#include "ink_unused.h"
View
1  lib/ts/Regression.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/****************************************************************************
Regression.cc
View
1  lib/ts/TestHttpHeader.cc
@@ -46,7 +46,6 @@
#include <time.h>
#include <sys/param.h>
#include <sys/stat.h>
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
static void
add_field(HttpHeader * h, const char *name, const char *value)
View
2  lib/ts/TextBuffer.cc
@@ -21,8 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include "libts.h"
#include "TextBuffer.h"
View
1  lib/ts/Tokenizer.cc
@@ -23,7 +23,6 @@
/***************************************/
#include "ink_platform.h"
-#include "ink_unused.h"
#include "Tokenizer.h"
#include "ink_bool.h"
#include "ink_assert.h"
View
2  lib/ts/Version.cc
@@ -21,8 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include "libts.h"
AppVersionInfo::AppVersionInfo()
View
1  lib/ts/ink_args.cc
@@ -27,7 +27,6 @@ Process arguments
****************************************************************************/
#include "libts.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
//
// Global variables
View
1  lib/ts/ink_assert.cc
@@ -29,7 +29,6 @@ Assertions
#include "ink_platform.h"
#include "ink_assert.h"
#include "ink_error.h"
-#include "ink_unused.h"
#include "ink_string.h" /* MAGIC_EDITING_TAG */
void
View
1  lib/ts/ink_base64.cc
@@ -35,7 +35,6 @@
#include "ink_bool.h"
#include "ink_assert.h"
#include "ink_resource.h"
-#include "ink_unused.h"
// TODO: The code here seems a bit klunky, and could probably be improved a bit.
View
1  lib/ts/ink_code.cc
@@ -25,7 +25,6 @@
#include <stdio.h>
#include "ink_code.h"
#include "ink_assert.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/**
View
1  lib/ts/ink_defs.cc
@@ -29,7 +29,6 @@
****************************************************************************/
#include "libts.h"
-#include "ink_unused.h"
#include "ink_platform.h"
#if defined(linux) || defined(freebsd) || defined(darwin)
#include <sys/types.h>
View
12 lib/ts/ink_defs.h
@@ -42,6 +42,18 @@
#define MIN(x,y) (((x) <= (y)) ? (x) : (y))
#endif
+#define NOWARN_UNUSED_VAR __attribute__ ((unused))
+#define NOWARN_UNUSED(x) (void)(x)
+#define NOWARN_UNUSED_RETURN(x) if (x) {}
+
+#ifndef likely
+#define likely(x) __builtin_expect (!!(x), 1)
+#endif
+#ifndef unlikely
+#define unlikely(x) __builtin_expect (!!(x), 0)
+#endif
+
+
#if TS_USE_HWLOC
# include <hwloc.h>
#endif
View
9 lib/ts/ink_error.h
@@ -37,15 +37,6 @@
#include "ink_apidefs.h"
-
-/* Compiler Hints
- * XXX(igalic): This has been pulled from ink_defs.h because
- * Solaris CC compiler complained about hwloc. Don't. Ask.
- */
-#define NOWARN_UNUSED(x) (void)(x)
-#define NOWARN_UNUSED_RETURN(x) if (x) {}
-
-
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
View
1  lib/ts/ink_hash_table.cc
@@ -34,7 +34,6 @@
#include "ink_hash_table.h"
#include "ink_memory.h"
#include "ink_resource.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/*===========================================================================*
View
5 lib/ts/ink_hrtime.cc
@@ -30,6 +30,7 @@
#include "ink_hrtime.h"
#include "ink_assert.h"
+#include "ink_defs.h"
#if defined(freebsd)
#include <sys/types.h>
@@ -38,8 +39,6 @@
#endif
#include <sys/time.h>
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
char *
int64_to_str(char *buf, unsigned int buf_size, int64_t val, unsigned int *total_chars, unsigned int req_width, char pad_char)
{
@@ -152,7 +151,7 @@ squid_timestamp_to_buf(char *buf, unsigned int buf_size, long timestamp_sec, lon
tmp_buf[tmp_buf_size - 5] = '.';
int ms = timestamp_usec / 1000;
unsigned int num_chars_ms;
- char RELEASE_UNUSED *ts_ms = int64_to_str(&tmp_buf[tmp_buf_size - 4], 4, ms, &num_chars_ms, 4, '0');
+ char NOWARN_UNUSED_VAR *ts_ms = int64_to_str(&tmp_buf[tmp_buf_size - 4], 4, ms, &num_chars_ms, 4, '0');
ink_debug_assert(ts_ms && num_chars_ms == 4);
unsigned int chars_to_write = num_chars_s + 3; // no eos
View
2  lib/ts/ink_llqueue.h
@@ -29,8 +29,6 @@
A simple linked list queue.
****************************************************************************/
-
-#include "ink_unused.h"
#include "ink_mutex.h"
#include "ink_thread.h"
View
2  lib/ts/ink_mutex.cc
@@ -22,10 +22,10 @@
*/
#include "ink_error.h"
+#include "ink_defs.h"
#include <assert.h>
#include "stdio.h"
#include "ink_mutex.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
x_pthread_mutexattr_t _g_mattr;
View
1  lib/ts/ink_queue.h
@@ -37,7 +37,6 @@
#include "ink_platform.h"
#include "ink_port.h"
#include "ink_apidefs.h"
-#include "ink_unused.h"
/*
For information on the structure of the x86_64 memory map:
View
1  lib/ts/ink_queue_utils.cc
@@ -25,7 +25,6 @@
#include <assert.h>
#include "ink_atomic.h"
-#include "ink_unused.h"
#include "ink_queue.h"
/*
View
1  lib/ts/ink_res_init.cc
@@ -66,6 +66,7 @@
#include "ink_platform.h"
+#include "ink_defs.h"
#include <sys/types.h>
#include <sys/param.h>
View
1  lib/ts/ink_res_mkquery.cc
@@ -67,6 +67,7 @@
#include "ink_config.h"
+#include "ink_defs.h"
#include <sys/types.h>
#include <sys/param.h>
View
2  lib/ts/ink_sock.cc
@@ -29,8 +29,6 @@
***************************************************************************/
#include "libts.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
//
// Compilation options
//
View
1  lib/ts/ink_sprintf.cc
@@ -32,7 +32,6 @@
****************************************************************************/
#include "ink_sprintf.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#define NUL '\0'
View
1  lib/ts/ink_string++.cc
@@ -31,7 +31,6 @@
****************************************************************************/
#include "libts.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/***********************************************************************
* *
View
4 lib/ts/ink_syslog.cc
@@ -28,10 +28,6 @@
*
*
****************************************************************************/
-
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include "libts.h"
struct syslog_fac
View
1  lib/ts/ink_thread.cc
@@ -29,7 +29,6 @@
**************************************************************************/
#include "libts.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
// // ignore the compiler warning... so that this can be used
// // in the face of changes to the Solaris header files (see "man thread")
View
1  lib/ts/ink_time.cc
@@ -33,7 +33,6 @@
#include "ink_time.h"
#include "ink_assert.h"
#include "ink_string.h"
-#include "ink_unused.h"
#include <locale.h>
#include <sys/resource.h>
View
1  lib/ts/ink_time.h
@@ -37,7 +37,6 @@
#include "ink_platform.h"
#include "ink_port.h"
#include "ink_hrtime.h"
-#include "ink_unused.h"
/*===========================================================================*
View
55 lib/ts/ink_unused.h
@@ -1,55 +0,0 @@
-/** @file
-
- A brief file description
-
- @section license License
-
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- */
-
-#ifndef _ink_unused_h
-#define _ink_unused_h
-
-#ifdef DEBUG
-#define RELEASE_UNUSED
-#else
-#define RELEASE_UNUSED __attribute__ ((unused))
-#endif /* #ifdef DEBUG */
-
-#define UNUSED __attribute__ ((unused))
-#define INK_UNUSED __attribute__ ((unused))
-
-#if 0 /* NOT USED */
-# define inline inline __attribute__ ((always_inline))
-# define __pure __attribute__ ((pure))
-# define __const __attribute__ ((const))
-# define __noreturn __attribute__ ((noreturn))
-# define __must_check __attribute__ ((warn_unused_result))
-# define __deprecated __attribute__ ((deprecated))
-# define __used __attribute__ ((used))
-# define __unused __attribute__ ((unused))
-# define __packed __attribute__ ((packed))
-#endif
-
-#ifndef likely
-#define likely(x) __builtin_expect (!!(x), 1)
-#endif
-#ifndef unlikely
-#define unlikely(x) __builtin_expect (!!(x), 0)
-#endif
-
-#endif /* #ifndef _ink_unused_h */
View
1  lib/ts/libts.h
@@ -77,7 +77,6 @@
#include "ink_syslog.h"
#include "ink_thread.h"
#include "ink_time.h"
-#include "ink_unused.h"
#include "fastlz.h"
#include "Allocator.h"
View
1  lib/ts/llqueue.cc
@@ -28,7 +28,6 @@
#include <assert.h>
#include <limits.h>
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "ink_llqueue.h"
#include "errno.h"
View
1  lib/ts/mkdfa.c
@@ -26,7 +26,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "ink_unused.h"
#define TRUE 1
#define FALSE 0
View
1  lib/ts/test_atomic.cc
@@ -30,7 +30,6 @@
#include "ink_atomic.h"
#include "ink_queue.h"
#include "ink_thread.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#ifndef LONG_ATOMICLIST_TEST
View
3  lib/ts/test_freelist.cc
@@ -25,12 +25,9 @@
#include <string.h>
#include "ink_thread.h"
#include "ink_queue.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#define NTHREADS 64
-
-
InkFreeList *flist = NULL;
View
2  mgmt/AddConfigFilesHere.cc
@@ -22,12 +22,10 @@
*/
#include "ink_platform.h"
-#include "ink_unused.h"
#include "Main.h"
#include "MgmtUtils.h"
#include "ConfigParse.h"
#include "Diags.h"
-static char INK_UNUSED rcsId__AddConfigFilesHere_cc[] = "@(#) built on " __DATE__ " " __TIME__; /* MAGIC_EDITING_TAG */
/****************************************************************************
*
View
1  mgmt/LocalManager.cc
@@ -24,7 +24,6 @@
#include "libts.h"
#include "ink_platform.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "MgmtUtils.h"
#include "I_Layout.h"
#include "Compatability.h"
View
1  mgmt/MultiFile.cc
@@ -29,7 +29,6 @@
#include "ink_file.h"
#include "ink_string.h"
#include "ink_time.h"
-#include "ink_unused.h"
#include "Compatability.h"
#include "MgmtUtils.h"
View
1  mgmt/api/remote/APITestCliRemote.cc
@@ -95,6 +95,7 @@
*/
#include "ink_config.h"
+#include "ink_defs.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
View
1  mgmt/api/remote/CoreAPIRemote.cc
@@ -37,6 +37,7 @@
***************************************************************************/
#include "ink_config.h"
+#include "ink_defs.h"
#include <strings.h>
#include "ink_string.h"
#include "I_Layout.h"
View
1  mgmt/api/remote/NetworkUtilsRemote.cc
@@ -33,6 +33,7 @@
***************************************************************************/
#include "ink_config.h"
+#include "ink_defs.h"
#include "ink_sock.h"
#include "ink_string.h"
#include "I_Layout.h"
View
1  mgmt/cli/UtilCmds.cc
@@ -33,6 +33,7 @@
#include "CliMgmtUtils.h"
#include "CliDisplay.h"
#include "ink_error.h"
+#include "ink_defs.h"
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
View
4 mgmt/cli/cliParseArg.cc
@@ -27,9 +27,6 @@
If arguments are are valid it converts string arguments to the proper type
*/
-
-
-
#include <tcl.h>
#include <string.h>
#include <stdlib.h>
@@ -37,6 +34,7 @@
#include "definitions.h"
#include "CliDisplay.h"
#include "ink_string.h"
+#include "ink_defs.h"
int checkintrange(char *range, int value);
int checkfloatrange(char *range, float value);
View
1  mgmt/cli/hashtable.cc
@@ -63,6 +63,7 @@
#include "definitions.h"
#include "createArgument.h"
#include "ink_string.h"
+#include "ink_defs.h"
extern Tcl_Interp *interp;
View
1  mgmt/cli/processArgument.cc
@@ -25,6 +25,7 @@
#include "hashtable.h"
#include "definitions.h"
#include "ink_error.h"
+#include "ink_defs.h"
#include <string.h>
// processArgForCommand
View
2  mgmt/cluster/VMap.cc
@@ -28,9 +28,7 @@
*
*
*/
-
#include "ink_platform.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "Main.h"
#include "LocalManager.h"
View
2  mgmt/preparse/IPRange.cc
@@ -28,8 +28,6 @@
This file an IPRange object that reads a range of IPS, and does
matching of a given IP address against those ranges.
****************************************************************************/
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
View
1  mgmt/preparse/SocksParser.cc
@@ -21,5 +21,4 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "IPRange.h"
View
1  mgmt/stats/StatProcessor.cc
@@ -32,7 +32,6 @@
#include "ink_config.h"
#include "StatProcessor.h"
-#include "ink_unused.h"
#define STAT_CONFIG_FILE "stats.config.xml"
View
1  mgmt/utils/EnvBlock.cc
@@ -23,7 +23,6 @@
/***************************************/
#include "libts.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "EnvBlock.h"
#include "string.h"
View
1  mgmt/utils/ExpandingArray.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "ink_platform.h"
#include "ExpandingArray.h"
#include "ink_resource.h"
View
3  mgmt/utils/MgmtUtils.cc
@@ -20,9 +20,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include "libts.h"
#include "MgmtUtils.h"
#include "Diags.h"
View
1  mgmt/utils/XmlUtils.cc
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "ink_platform.h"
+#include "ink_defs.h"
#include <sys/types.h>
#include <sys/stat.h>
View
1  mgmt/web2/WebHttp.cc
@@ -31,7 +31,6 @@
#include "libts.h"
#include "ink_platform.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "SimpleTokenizer.h"
View
1  mgmt/web2/WebHttpMessage.cc
@@ -26,7 +26,6 @@
#include "ink_resource.h"
#include "ink_string.h"
#include "ink_time.h"
-#include "ink_unused.h"
#include "WebUtils.h"
#include "WebHttpMessage.h"
View
1  mgmt/web2/WebOverview.cc
@@ -29,7 +29,6 @@
****************************************************************************/
#include "ink_platform.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "WebOverview.h"
#include "WebGlobals.h"
View
1  mgmt/web2/WebUtils.cc
@@ -22,7 +22,6 @@
*/
#include "ink_config.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "ink_assert.h"
#include "ink_sock.h"
View
4 plugins/experimental/header_rewrite/condition.cc
@@ -19,10 +19,6 @@
// condition.cc: Implementation of the condition base class
//
//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__condition_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <ts/ts.h>
#include <string>
View
3  plugins/experimental/header_rewrite/condition.h
@@ -22,9 +22,6 @@
#ifndef __CONDITION_H__
#define __CONDITION_H__ 1
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__condition_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
View
4 plugins/experimental/header_rewrite/conditions.cc
@@ -19,10 +19,6 @@
// conditions.cc: Implementation of the condition classes
//
//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__conditions_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <unistd.h>
#include <ts/ts.h>
View
3  plugins/experimental/header_rewrite/conditions.h
@@ -22,9 +22,6 @@
#ifndef __CONDITIONS_H__
#define __CONDITIONS_H__ 1
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__conditions_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
#include <boost/lexical_cast.hpp>
View
3  plugins/experimental/header_rewrite/factory.cc
@@ -19,9 +19,6 @@
// factory.cc: Factory functions for operators, conditions and condition variables.
//
//
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__factory_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include "operators.h"
View
3  plugins/experimental/header_rewrite/factory.h
@@ -22,9 +22,6 @@
#ifndef __FACTORY_H__
#define __FACTORY_H__ 1
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__factory_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include "operator.h"
View
6 plugins/experimental/header_rewrite/header_rewrite.cc
@@ -20,9 +20,6 @@
// --------------
//
//
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__header_rewrite_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <fstream>
#include <string>
#include <boost/algorithm/string.hpp>
@@ -35,6 +32,9 @@ static char UNUSED rcsId__header_rewrite_cc[] = "@(#) $Id$ built on " __DATE__ "
#include "resources.h"
// "Defines"
+const char* PLUGIN_NAME = "header_rewrite";
+const char* PLUGIN_NAME_DBG = "header_rewrite_dbg";
+
static const char* DEFAULT_CONF_PATH = "/usr/local/etc/header_rewrite/";
View
4 plugins/experimental/header_rewrite/lulu.h
@@ -43,8 +43,8 @@
#error "Define barriers"
#endif
-static const char* PLUGIN_NAME UNUSED = "header_rewrite";
-static const char* PLUGIN_NAME_DBG UNUSED = "header_rewrite_dbg";
+extern const char* PLUGIN_NAME;
+extern const char* PLUGIN_NAME_DBG;
// From google styleguide: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml
View
4 plugins/experimental/header_rewrite/matcher.cc
@@ -19,10 +19,6 @@
// matcher.cc: Implementation of the condition classes
//
//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__matcher_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
View
4 plugins/experimental/header_rewrite/matcher.h
@@ -22,10 +22,6 @@
#ifndef __MATCHER_H__
#define __MATCHER_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__matcher_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
#include "regex_helper.h"
View
4 plugins/experimental/header_rewrite/operator.cc
@@ -19,10 +19,6 @@
// operator.cc: Implementation of the operator base class
//
//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operator_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <ts/ts.h>
#include "operator.h"
View
3  plugins/experimental/header_rewrite/operator.h
@@ -22,9 +22,6 @@
#ifndef __OPERATOR_H__
#define __OPERATOR_H__ 1
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operator_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
View
4 plugins/experimental/header_rewrite/operators.cc
@@ -19,10 +19,6 @@
// operators.cc: implementation of the operator classes
//
//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operators_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <arpa/inet.h>
#include <ts/ts.h>
#include <string.h>
View
3  plugins/experimental/header_rewrite/operators.h
@@ -22,9 +22,6 @@
#ifndef __OPERATORS_H__
#define __OPERATORS_H__ 1
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__operators_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
View
3  plugins/experimental/header_rewrite/parser.cc
@@ -19,9 +19,6 @@
// parser.cc: implementation of the config parser
//
//
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__parser_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <utility>
#include <boost/tokenizer.hpp>
View
4 plugins/experimental/header_rewrite/parser.h
@@ -22,10 +22,6 @@
#ifndef __PARSER_H__
#define __PARSER_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__parser_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <vector>
#include <algorithm>
View
4 plugins/experimental/header_rewrite/resources.cc
@@ -19,10 +19,6 @@
// resources.cc: Implementation of the resources class.
//
//
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__resources_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <ts/ts.h>
#include "resources.h"
View
4 plugins/experimental/header_rewrite/resources.h
@@ -22,10 +22,6 @@
#ifndef __RESOURCES_H__
#define __RESOURCES_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__resources_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
#include <ts/remap.h>
View
3  plugins/experimental/header_rewrite/ruleset.cc
@@ -19,9 +19,6 @@
// ruleset.cc: implementation of the ruleset class
//
//
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__ruleset_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include "ruleset.h"
View
4 plugins/experimental/header_rewrite/ruleset.h
@@ -22,10 +22,6 @@
#ifndef __RULESET_H__
#define __RULESET_H__ 1
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__ruleset_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include "matcher.h"
View
3  plugins/experimental/header_rewrite/statement.cc
@@ -20,9 +20,6 @@
//
//
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__statement_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <ts/ts.h>
#include "statement.h"
View
3  plugins/experimental/header_rewrite/statement.h
@@ -23,9 +23,6 @@
#ifndef __STATEMENT_H__
#define __STATEMENT_H__ 1
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__statement_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <vector>
#include <ts/ts.h>
View
3  plugins/experimental/header_rewrite/value.h
@@ -22,9 +22,6 @@
#ifndef __VALUE_H__
#define __VALUE_H__ 1
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__value_h[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include <string>
#include <ts/ts.h>
View
4 plugins/experimental/hipes/hipes.cc
@@ -18,10 +18,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__url_remap_cc[] = "@(#) $Id: yfor_remap.cc 218 2009-04-25 01:29:16Z leifh $ built on " __DATE__ " " __TIME__;
-
#include <stdio.h>
#include <sys/time.h>
#include <string.h>
View
1  plugins/header_filter/lulu.h
@@ -27,7 +27,6 @@
#include <sys/types.h>
#include "ink_atomic.h"
-#include "ink_unused.h"
// Memory barriers on i386 / linux / gcc
#if defined(__i386__)
View
4 plugins/regex_remap/regex_remap.cc
@@ -20,10 +20,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
-#define UNUSED __attribute__ ((unused))
-static char UNUSED rcsId__regex_remap_cc[] = "@(#) $Id$ built on " __DATE__ " " __TIME__;
-
#include "ts/ts.h"
#include "ts/remap.h"
#include "ink_config.h"
View
1  proxy/AbstractBuffer.cc
@@ -22,7 +22,6 @@
*/
#include "ink_config.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include <assert.h>
#include <string.h>
#include "AbstractBuffer.h"
View
1  proxy/CacheControl.cc
@@ -29,7 +29,6 @@
****************************************************************************/
#include "ink_config.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include <sys/types.h>
View
3  proxy/ControlBase.cc
@@ -28,12 +28,9 @@
*
*
****************************************************************************/
-
-
#include "ink_platform.h"
#include "ink_port.h"
#include "ink_time.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "Main.h"
#include "URL.h"
View
1  proxy/ControlMatcher.cc
@@ -29,7 +29,6 @@
****************************************************************************/
#include "ink_config.h"
-#include "ink_unused.h"
#include <sys/types.h>
#include "Main.h"
#include "ProxyConfig.h"
View
3  proxy/Error.cc
@@ -29,9 +29,6 @@
****************************************************************************/
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include "Main.h"
#include "Error.h"
#include <time.h>
View
3  proxy/ICP.cc
@@ -21,9 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
-
/****************************************************************************
ICP.cc
View
2  proxy/ICPProcessor.cc
@@ -21,8 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
/****************************************************************************
ICPProcessor.cc
View
2  proxy/ICPStats.cc
@@ -21,8 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
/****************************************************************************
View
4 proxy/ParentSelection.cc
@@ -20,10 +20,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include "libts.h"
#include "P_EventSystem.h"
#include "ParentSelection.h"
View
1  proxy/ReverseProxy.cc
@@ -43,7 +43,6 @@
#include "RemapProcessor.h"
#include "UrlRewrite.h"
#include "UrlMapping.h"
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/** Time till we free the old stuff after a reconfiguration. */
#define URL_REWRITE_TIMEOUT (HRTIME_SECOND*60)
View
1  proxy/TestClock.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "ink_hrtime.h"
#include <sys/time.h>
View
2  proxy/TestClusterHash.cc
@@ -21,12 +21,10 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/****************************************************************************
TestClusterHash.cc
****************************************************************************/
-
#include "Cluster.h"
#include "libts.h"
View
1  proxy/TestDNS.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
/****************************************************************************
TestDns.cc
View
2  proxy/TestHook.cc
@@ -25,9 +25,7 @@
TestHook.cc
****************************************************************************/
-
#include "ink_config.h"
-#include "ink_unused.h"
#include <limits.h>
#include "P_Net.h"
#include "ParseRules.h"
View
2  proxy/TestPreProc.cc
@@ -20,8 +20,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "TestPreProc.h"
#include "IOBufferPool.h"
#include "IOBuffer.h"
View
3  proxy/TestProxy.cc
@@ -20,9 +20,6 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
-
#include <limits.h>
#include "Net.h"
#include "Disk.h"
View
1  proxy/TestRegex.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "Main.h"
#include "Regex.h"
View
1  proxy/TestSimpleProxy.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include <limits.h>
#include "Net.h"
#include "Disk.h"
View
2  proxy/congest/CongestionDB.cc
@@ -27,7 +27,6 @@
*
*
****************************************************************************/
-
#include "libts.h"
#include "P_EventSystem.h"
#include "P_Net.h"
@@ -35,7 +34,6 @@
#include "CongestionDB.h"
#include "Congestion.h"
#include "ProcessManager.h"
-#include "ink_unused.h"
#define SCHEDULE_CONGEST_CONT_INTERVAL HRTIME_MSECONDS(5)
int CONGESTION_DB_SIZE = 1024;
View
1  proxy/http/HttpDebugNames.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "HttpDebugNames.h"
#include "P_EventSystem.h"
#include "StatPages.h"
View
1  proxy/http/TestHttpTransact.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "HttpNet.h"
#include <iostream.h>
#include "ink_assert.h"
View
1  proxy/http/TestUrl.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "URL.h"
#include <iostream.h>
#include <fstream.h>
View
1  proxy/http/test_socket_close.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include <iostream.h>
#include <sys/types.h>
#include <sys/socket.h>
View
1  proxy/http/testheaders.cc
@@ -21,7 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h" /* MAGIC_EDITING_TAG */
#include "ink_string.h"
#include "HttpTransact.h"
#include "HttpTransactHeaders.h"
View
2  proxy/logcat.cc
@@ -20,10 +20,8 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
#include "ink_config.h"
#include "ink_file.h"
-#include "ink_unused.h"
#include "I_Layout.h"
#include "I_Version.h"
View
3  proxy/logging/LogAccess.cc
@@ -31,9 +31,6 @@
to provide support for marshalling and unmarshalling support for the other
LogAccess derived classes.
*/
-
-#include "ink_unused.h"
-
#include "libts.h"
#include "Error.h"
View
2  proxy/logging/LogAccessHttp.cc
@@ -30,8 +30,6 @@
***************************************************************************/
-#include "ink_unused.h"
-
#include "libts.h"
#include "Error.h"
#include "LogAccessHttp.h"
View
1  proxy/logging/LogAccessTest.cc
@@ -26,7 +26,6 @@
***************************************************************************/
-#include "ink_unused.h"
/*-------------------------------------------------------------------------
Ok, the name of the game here is to generate 'random' data, with strings
View
3  proxy/logging/LogBuffer.cc
@@ -25,10 +25,7 @@
recording log entries. See the header file LogBuffer.h for more
information on the structure of a LogBuffer.
*/
-
-
#include "libts.h"
-#include "ink_unused.h"
#include <stdio.h>
#include <stdlib.h>
View
1  proxy/logging/LogFile.cc
@@ -28,7 +28,6 @@
***************************************************************************/
#include "libts.h"
-#include "ink_unused.h"
#include <errno.h>
#include <sys/types.h>
View
2  proxy/logging/LogFormat.cc
@@ -26,9 +26,7 @@
***************************************************************************/
-
#include "ink_config.h"
-#include "ink_unused.h"
#include <stdio.h>
#include <string.h>
View
2  proxy/logging/LogSock.cc
@@ -21,8 +21,6 @@
limitations under the License.
*/
-#include "ink_unused.h"
-
#include "P_EventSystem.h"
#include "Error.h"
View
3  proxy/logging/LogUtils.cc
@@ -21,10 +21,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-
-
#include "ink_config.h"
-#include "ink_unused.h"
#include <assert.h>
#include <stdio.h>
View
1  proxy/logstats.cc
@@ -25,7 +25,6 @@
#undef std // FIXME: remove dependency on the STL
#include "ink_config.h"
#include "ink_file.h"
-#include "ink_unused.h"
#include "I_Layout.h"
#include "I_Version.h"
View
1  proxy/sac.cc
@@ -23,7 +23,6 @@
#include "ink_config.h"
#include "ink_file.h"
-#include "ink_unused.h"
#include "I_Layout.h"
#include "I_Version.h"
#include "P_Net.h"
Please sign in to comment.
Something went wrong with that request. Please try again.