Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/swoc/unit_tests/test_TextView.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <unordered_map>
#include <cmath>
#include <algorithm>
#include <iterator>

#include "swoc/TextView.h"
#include <catch2/catch_test_macros.hpp>
Expand Down
1 change: 1 addition & 0 deletions plugins/experimental/cookie_remap/cookiejar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "cookiejar.h"
#include "strip.h"
#include <cstdlib>
#include <cstring>

/* allowed cookie-name definition from RFC
Expand Down
1 change: 1 addition & 0 deletions plugins/experimental/inliner/cache-handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <cassert>
Expand Down
1 change: 1 addition & 0 deletions plugins/experimental/inliner/png.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <algorithm>
#include <exception>
#include <iterator>
#include <string>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions plugins/multiplexer/ats-multiplexer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
limitations under the License.
*/
#include <algorithm>
#include <iterator>
#include <ts/ts.h>
#include <ts/remap.h>

Expand Down
1 change: 1 addition & 0 deletions src/mgmt/config/ReloadCoordinator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "mgmt/config/ReloadCoordinator.h"

#include <algorithm>
#include <iterator>
#include <mutex>
#include <utility>

Expand Down
2 changes: 0 additions & 2 deletions src/records/P_RecDefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,3 @@ struct RecMessageItr {
using RecMessage = RecMessageHdr;

using RecDumpEntryCb = void (*)(RecT, void *, int, const char *, int, RecData *);

using RecMessageRecvCb = RecErrT (*)(RecMessage *, RecMessageT, void *);
2 changes: 0 additions & 2 deletions src/records/P_RecMessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,5 @@ RecMessage *RecMessageMarshal_Realloc(RecMessage *msg, const RecRecord *record);
int RecMessageUnmarshalFirst(RecMessage *msg, RecMessageItr *itr, RecRecord **record);
int RecMessageUnmarshalNext(RecMessage *msg, RecMessageItr *itr, RecRecord **record);

int RecMessageRegisterRecvCb(RecMessageRecvCb recv_cb, void *cookie);

RecMessage *RecMessageReadFromDisk(const char *fpath);
int RecMessageWriteToDisk(RecMessage *msg, const char *fpath);
19 changes: 0 additions & 19 deletions src/records/RecMessage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
#include "tscore/Layout.h"
#include "swoc/MemSpan.h"

static RecMessageRecvCb g_recv_cb = nullptr;
static void *g_recv_cookie = nullptr;

//-------------------------------------------------------------------------
// RecMessageAlloc
//-------------------------------------------------------------------------
Expand Down Expand Up @@ -224,22 +221,6 @@ RecMessageUnmarshalNext(RecMessage *msg, RecMessageItr *itr, RecRecord **record)
return REC_ERR_OKAY;
}

//-------------------------------------------------------------------------
// RecMessageRegisterRecvCb
//-------------------------------------------------------------------------

int
RecMessageRegisterRecvCb(RecMessageRecvCb recv_cb, void *cookie)
{
if (g_recv_cb) {
return REC_ERR_FAIL;
}
g_recv_cookie = cookie;
g_recv_cb = recv_cb;

return REC_ERR_OKAY;
}

//-------------------------------------------------------------------------
// RecMessageReadFromDisk
//-------------------------------------------------------------------------
Expand Down
9 changes: 0 additions & 9 deletions src/records/RecordsConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1705,15 +1705,6 @@ matches_bracketed_int_range(std::string_view s)
return i == s.size(); // must end exactly here
}

// For string literals: deduces N and strips the trailing '\0'
template <std::size_t N>
consteval bool
matches_bracketed_int_range(const char (&lit)[N])
{
// N includes the null terminator
return matches_bracketed_int_range(std::string_view{lit, N - 1});
}

// Validate all RECC_INT entries in the RecordsConfig array at compile time
template <std::size_t N>
consteval bool
Expand Down
1 change: 1 addition & 0 deletions src/traffic_cache_tool/CacheTool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
limitations under the License.
*/

#include <algorithm>
#include <iostream>
#include <list>
#include <memory>
Expand Down