diff --git a/src/iocore/net/libinknet_stub.cc b/src/iocore/net/libinknet_stub.cc index 9d1c8b6441c..eeea04daddc 100644 --- a/src/iocore/net/libinknet_stub.cc +++ b/src/iocore/net/libinknet_stub.cc @@ -24,47 +24,3 @@ #include "tscore/Version.h" AppVersionInfo appVersionInfo; - -#include "proxy/FetchSM.h" -ClassAllocator FetchSMAllocator("unusedFetchSMAllocator"); -bool -FetchSM::is_initialized() -{ - return true; -} -void -FetchSM::ext_launch() -{ -} -void -FetchSM::ext_destroy() -{ -} -ssize_t -FetchSM::ext_read_data(char *, unsigned long) -{ - return 0; -} -void -FetchSM::ext_add_header(char const *, int, char const *, int) -{ -} -void -FetchSM::ext_write_data(void const *, unsigned long) -{ -} -void * -FetchSM::ext_get_user_data() -{ - return nullptr; -} -void -FetchSM::ext_set_user_data(void *) -{ -} -void -FetchSM::ext_init(Continuation *, char const *, char const *, char const *, sockaddr const *, int) -{ -} - -ChunkedHandler::ChunkedHandler() {} diff --git a/src/proxy/unit_tests/CMakeLists.txt b/src/proxy/unit_tests/CMakeLists.txt index b21fb327155..791506dc518 100644 --- a/src/proxy/unit_tests/CMakeLists.txt +++ b/src/proxy/unit_tests/CMakeLists.txt @@ -15,9 +15,7 @@ # ####################### -add_executable( - test_proxy main.cc test_ParentHashConfig.cc "${PROJECT_SOURCE_DIR}/src/iocore/net/libinknet_stub.cc" stub.cc -) +add_executable(test_proxy main.cc test_ParentHashConfig.cc "${PROJECT_SOURCE_DIR}/src/iocore/net/libinknet_stub.cc") target_link_libraries(test_proxy PRIVATE Catch2::Catch2WithMain ts::http ts::proxy ts::tscore ts::records ts::inkevent) diff --git a/src/proxy/unit_tests/stub.cc b/src/proxy/unit_tests/stub.cc deleted file mode 100644 index a1a95fe8ccb..00000000000 --- a/src/proxy/unit_tests/stub.cc +++ /dev/null @@ -1,26 +0,0 @@ -/** @file - - Stub file for test_proxy - - @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. - */ - -#include "proxy/IPAllow.h" - -uint8_t IpAllow::subjects[IpAllow::Subject::MAX_SUBJECTS];