Remove Engine::enable_doc_comments.

This commit is contained in:
Stephen Chung
2021-05-03 13:07:51 +08:00
parent bb5dc7b637
commit aad842fe50
5 changed files with 13 additions and 51 deletions

View File

@@ -804,11 +804,6 @@ pub struct Engine {
/// Max limits.
#[cfg(not(feature = "unchecked"))]
pub(crate) limits: Limits,
/// Disable doc-comments?
#[cfg(not(feature = "no_function"))]
#[cfg(feature = "metadata")]
pub(crate) disable_doc_comments: bool,
}
impl fmt::Debug for Engine {
@@ -926,10 +921,6 @@ impl Engine {
#[cfg(not(feature = "no_object"))]
max_map_size: None,
},
#[cfg(not(feature = "no_function"))]
#[cfg(feature = "metadata")]
disable_doc_comments: false,
};
engine.global_namespace.set_internal(true);
@@ -987,10 +978,6 @@ impl Engine {
#[cfg(not(feature = "no_object"))]
max_map_size: None,
},
#[cfg(not(feature = "no_function"))]
#[cfg(feature = "metadata")]
disable_doc_comments: false,
};
engine.global_namespace.set_internal(true);