diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index b954397dae2e2e..3a2e2356b9049b 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -1735,9 +1735,7 @@ void SSLWrap::AddMethods(Environment* env, Local t) {
GetEphemeralKeyInfo);
env->SetProtoMethodNoSideEffect(t, "getProtocol", GetProtocol);
-#ifdef SSL_set_max_send_fragment
env->SetProtoMethod(t, "setMaxSendFragment", SetMaxSendFragment);
-#endif // SSL_set_max_send_fragment
env->SetProtoMethodNoSideEffect(t, "getALPNNegotiatedProtocol",
GetALPNNegotiatedProto);
@@ -2096,8 +2094,6 @@ void SSLWrap::GetEphemeralKeyInfo(
// ERR_get_error())
}
-
-#ifdef SSL_set_max_send_fragment
template
void SSLWrap::SetMaxSendFragment(
const FunctionCallbackInfo& args) {
@@ -2111,7 +2107,6 @@ void SSLWrap::SetMaxSendFragment(
args[0]->Int32Value(w->ssl_env()->context()).FromJust());
args.GetReturnValue().Set(rv);
}
-#endif // SSL_set_max_send_fragment
template