This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new d0739eac99 cleanup: Remove unnecessary dependency from a header file
(#11125)
d0739eac99 is described below
commit d0739eac99306e3ed6b43ee8b49da21b1bcad6b9
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Mon Mar 4 15:39:53 2024 -0700
cleanup: Remove unnecessary dependency from a header file (#11125)
---
include/tscore/Encoding.h | 4 +---
src/tscore/Encoding.cc | 3 +++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/tscore/Encoding.h b/include/tscore/Encoding.h
index c33317b89e..63c76da794 100644
--- a/include/tscore/Encoding.h
+++ b/include/tscore/Encoding.h
@@ -19,9 +19,7 @@
limitations under the License.
*/
-#include "tscore/Arena.h"
-#include "tscore/Diags.h"
-#include "tscore/ink_string.h"
+class Arena;
/*-------------------------------------------------------------------------
Encoding::escapify_url_common
diff --git a/src/tscore/Encoding.cc b/src/tscore/Encoding.cc
index 7989de976f..7063eb929d 100644
--- a/src/tscore/Encoding.cc
+++ b/src/tscore/Encoding.cc
@@ -20,7 +20,10 @@
*/
#include "swoc/bwf_ip.h"
+#include "tscore/Arena.h"
#include "tscore/Encoding.h"
+#include "tscore/Diags.h"
+#include "tscore/ink_string.h"
/*-------------------------------------------------------------------------
Encoding::escapify_url_common