profiler: Remove unused function in !ENABLE_PROFILER case

4 jobs for february-maintenance in 23 minutes and 22 seconds (queued for 42 minutes and 40 seconds)
Status Job ID Name Coverage
  Build
passed #6170
fedora_clang

00:12:16

passed #6171
fedora_cppcheck

00:00:25

passed #6169
fedora_gcc

00:10:40

 
  Failure
skipped #6172
on_failure