From aefa5a7c27156282f8d79d68cba6e483603d7f6e Mon Sep 17 00:00:00 2001 From: DreamSourceLab Date: Wed, 27 Sep 2023 05:09:29 -0700 Subject: [PATCH] clean code --- DSView/pv/sigsession.cpp | 2 -- DSView/pv/view/dsosignal.cpp | 9 --------- 2 files changed, 11 deletions(-) diff --git a/DSView/pv/sigsession.cpp b/DSView/pv/sigsession.cpp index 73e4689b..21e4acf2 100644 --- a/DSView/pv/sigsession.cpp +++ b/DSView/pv/sigsession.cpp @@ -1128,8 +1128,6 @@ namespace pv } else { - dsv_info("DSO triged position updated event."); - int probe_count = 0; int probe_en_count = 0; diff --git a/DSView/pv/view/dsosignal.cpp b/DSView/pv/view/dsosignal.cpp index 3dd239a5..bbf66a4c 100644 --- a/DSView/pv/view/dsosignal.cpp +++ b/DSView/pv/view/dsosignal.cpp @@ -853,8 +853,6 @@ void DsoSignal::paint_mid(QPainter &p, int left, int right, QColor fore, QColor (status.ch1_plevel ? status.ch1_cyc_plen - status.ch1_cyc_llen : status.ch1_cyc_tlen - status.ch1_cyc_plen + status.ch1_cyc_llen); _high_time = ((count == 0) ? 0 : samples / count) * tfactor; - // dsv_info("samples:%f,count:%d,tfactor:%f", - // samples, count, tfactor); samples = (index == 0) ? status.ch0_cyc_tlen + status.ch0_cyc_llen : status.ch1_cyc_flen + status.ch1_cyc_llen; _burst_time = samples * tfactor; @@ -1263,13 +1261,6 @@ void DsoSignal::paint_hover_measure(QPainter &p, QColor fore, QColor back) // Hover measure if (_hover_en && _hover_point != QPointF(-1, -1)) { QString hover_str = get_voltage(hw_offset - _hover_value, 2); - - //vf = (hw_offset - (double)(*p)) * mapRange / max_min_ref; - //v = v * data_scale * k * _vDial->get_factor() * DS_CONF_DSO_VDIVS / get_view_rect().height(); - - // dsv_info("c:%d, hw_offset:%d", - // hw_offset - _hover_value, hw_offset); - const int hover_width = p.boundingRect(0, 0, INT_MAX, INT_MAX, Qt::AlignLeft | Qt::AlignTop, hover_str).width() + 10; const int hover_height = p.boundingRect(0, 0, INT_MAX, INT_MAX,