Skip to content

Commit

Permalink
Remove MVFST_USE_LIBEV references since they are not needed anymore
Browse files Browse the repository at this point in the history
Summary: As title.

Reviewed By: mzlee

Differential Revision: D68643792

fbshipit-source-id: 328d0a7c48f85da0d5850d9f0b51cdff24c4708b
  • Loading branch information
jbeshay authored and facebook-github-bot committed Jan 25, 2025
1 parent 38d77ba commit 7dd1b67
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
2 changes: 0 additions & 2 deletions quic/api/QuicTransportBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,6 @@ void QuicTransportBase::attachEventBase(std::shared_ptr<QuicEventBase> evbIn) {
updatePeekLooper();
updateWriteLooper(false);

#ifndef MVFST_USE_LIBEV
if (getSocketObserverContainer() &&
getSocketObserverContainer()
->hasObserversForEvent<
Expand All @@ -754,7 +753,6 @@ void QuicTransportBase::attachEventBase(std::shared_ptr<QuicEventBase> evbIn) {
observer->evbAttach(observed, evb_.get());
});
}
#endif
}

void QuicTransportBase::detachEventBase() {
Expand Down
33 changes: 0 additions & 33 deletions quic/defs.bzl
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
"""
[mvfst]
use_libev = {False|[True]}
"""

load("@fbcode_macros//build_defs:autodeps_rule.bzl", "autodeps_rule")
load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark")
load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary")
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")
load("@fbsource//tools/build_defs:buckconfig.bzl", "read_bool")
load("@fbsource//tools/build_defs:cell_defs.bzl", "get_fbsource_cell")
load(
"@fbsource//tools/build_defs:default_platform_defs.bzl",
Expand Down Expand Up @@ -75,9 +69,6 @@ def _compute_header_namespace():
base_path = native.package_name()
return base_path[6:]

def use_libev():
return read_bool("mvfst", "use_libev", False)

def mvfst_cpp_library(
name,
autodeps_skip = False,
Expand All @@ -90,11 +81,6 @@ def mvfst_cpp_library(
**kwargs):
# Convert deps, exported_deps, and external_deps
if get_fbsource_cell() == "fbcode":
preprocessor_flags = kwargs.pop("preprocessor_flags", [])
if use_libev():
preprocessor_flags += ["-DMVFST_USE_LIBEV"]

kwargs["preprocessor_flags"] = preprocessor_flags
cpp_library(
name = name,
autodeps_skip = True,
Expand Down Expand Up @@ -170,9 +156,6 @@ def mvfst_cxx_library(

if is_tuple(exported_deps):
exported_deps = list(exported_deps)
exported_preprocessor_flags = kwargs.pop("exported_preprocessor_flags", [])
if use_libev():
exported_preprocessor_flags += ["-DMVFST_USE_LIBEV"]

fb_xplat_cxx_library(
name = name,
Expand All @@ -192,7 +175,6 @@ def mvfst_cxx_library(
fbandroid_labels = list(fbandroid_labels),
fbobjc_labels = list(fbobjc_labels),
compiler_flags = kwargs.pop("compiler_flags", []) + CXXFLAGS,
exported_preprocessor_flags = exported_preprocessor_flags,
windows_compiler_flags = kwargs.pop("windows_compiler_flags", []) + CXXFLAGS + WINDOWS_CLANG_CXX_FLAGS,
fbobjc_compiler_flags = kwargs.pop("fbobjc_compiler_flags", []) +
FBOBJC_CXXFLAGS,
Expand All @@ -216,11 +198,6 @@ def mvfst_cpp_test(
**kwargs):
# Convert deps and external_deps
if get_fbsource_cell() == "fbcode":
preprocessor_flags = kwargs.pop("preprocessor_flags", [])
if use_libev():
preprocessor_flags += ["-DMVFST_USE_LIBEV"]

kwargs["preprocessor_flags"] = preprocessor_flags
cpp_unittest(
name = name,
autodeps_skip = True,
Expand Down Expand Up @@ -276,11 +253,6 @@ def mvfst_cpp_binary(
**kwargs):
# Convert deps and external_deps
if get_fbsource_cell() == "fbcode":
preprocessor_flags = kwargs.pop("preprocessor_flags", [])
if use_libev():
preprocessor_flags += ["-DMVFST_USE_LIBEV"]

kwargs["preprocessor_flags"] = preprocessor_flags
cpp_binary(
name = name,
autodeps_skip = True,
Expand Down Expand Up @@ -337,11 +309,6 @@ def mvfst_cpp_benchmark(
**kwargs):
# Convert deps and external_deps
if get_fbsource_cell() == "fbcode":
preprocessor_flags = kwargs.pop("preprocessor_flags", [])
if use_libev():
preprocessor_flags += ["-DMVFST_USE_LIBEV"]

kwargs["preprocessor_flags"] = preprocessor_flags
cpp_benchmark(
name = name,
autodeps_skip = True,
Expand Down

0 comments on commit 7dd1b67

Please sign in to comment.