mirror of
https://github.com/facebook/proxygen.git
synced 2026-10-24 01:33:54 +03:00
Remove all mentions of boost
Summary: proxygen no longer directly requires boost Reviewed By: jbeshay Differential Revision: D93943200 fbshipit-source-id: 1371093607df2697771187df2088253609686e8a
This commit is contained in:
committed by
meta-codesync[bot]
parent
b7c5a22ae1
commit
a8ddf8e035
@@ -32,15 +32,6 @@ find_dependency(Fizz)
|
||||
find_dependency(ZLIB)
|
||||
find_dependency(OpenSSL)
|
||||
find_dependency(Threads)
|
||||
find_dependency(Boost 1.69 REQUIRED
|
||||
COMPONENTS
|
||||
iostreams
|
||||
context
|
||||
filesystem
|
||||
program_options
|
||||
regex
|
||||
thread
|
||||
)
|
||||
find_dependency(c-ares REQUIRED)
|
||||
|
||||
if(NOT TARGET proxygen::proxygen)
|
||||
|
||||
@@ -209,7 +209,7 @@ class HTTPHeaders {
|
||||
* hdrs.removeByPredicate([&] (HTTPHeaderCode code,
|
||||
* const string& header,
|
||||
* const string& val) {
|
||||
* return boost::regex_match(header, "^X-Fb-.*");
|
||||
* return std::regex_match(header, std::regex("^X-Fb-.*"));
|
||||
* });
|
||||
*
|
||||
* return true only if one or more headers are removed.
|
||||
|
||||
@@ -697,7 +697,7 @@ void HTTPMessage::splitNameValuePieces(
|
||||
}
|
||||
|
||||
StringPiece HTTPMessage::trim(StringPiece sp) {
|
||||
// TODO: use a library function from boost?
|
||||
// TODO: use a library trim function?
|
||||
for (; !sp.empty() && sp.front() == ' '; sp.pop_front()) {
|
||||
}
|
||||
for (; !sp.empty() && sp.back() == ' '; sp.pop_back()) {
|
||||
|
||||
@@ -215,8 +215,6 @@ class HTTP2PriorityQueue : public HTTP2PriorityQueueBase {
|
||||
void updateEnqueuedWeight();
|
||||
|
||||
private:
|
||||
using link_mode = boost::intrusive::link_mode<boost::intrusive::auto_unlink>;
|
||||
|
||||
class Node
|
||||
: public BaseNode
|
||||
, public folly::HHWheelTimer::Callback {
|
||||
|
||||
@@ -20,7 +20,7 @@ using std::unique_ptr;
|
||||
|
||||
namespace detail {
|
||||
|
||||
// This is defined in boost 1.53, but we only have 1.51 so far
|
||||
// Helper to get a raw pointer from a unique_ptr
|
||||
|
||||
template <typename T>
|
||||
T* get_pointer(const unique_ptr<T>& ptr) {
|
||||
|
||||
Reference in New Issue
Block a user