From 7f6e5de37c3c5a73865350cab1c976291be56fe2 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Jul 2020 03:41:52 +0200 Subject: disable profiling --- crates/ra_hir_ty/src/infer.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'crates/ra_hir_ty/src') diff --git a/crates/ra_hir_ty/src/infer.rs b/crates/ra_hir_ty/src/infer.rs index d8888e050..5c56c2eb0 100644 --- a/crates/ra_hir_ty/src/infer.rs +++ b/crates/ra_hir_ty/src/infer.rs @@ -65,11 +65,6 @@ mod coerce; /// The entry point of type inference. pub(crate) fn infer_query(db: &dyn HirDatabase, def: DefWithBodyId) -> Arc { let _p = profile("infer_query"); - let _cpu_profieler; - if ra_prof::Scope::is_active() { - _cpu_profieler = ra_prof::cpu_profiler(); - } - let resolver = def.resolver(db.upcast()); let mut ctx = InferenceContext::new(db, def, resolver); -- cgit v1.2.3