From fbfe3a59bfc90d4e1d934cbe0f0967f608950bca Mon Sep 17 00:00:00 2001 From: mosfet80 <10235105+mosfet80@users.noreply.github.com> Date: Mon, 25 Aug 2025 06:00:29 +0200 Subject: [PATCH] Clean SoDatumLabel.cpp (#23217) * Clean SoDatumLabel.cpp removed unused variables * Update SoDatumLabel.cpp --- src/Gui/SoDatumLabel.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Gui/SoDatumLabel.cpp b/src/Gui/SoDatumLabel.cpp index 6953cf8d1a..dee7922338 100644 --- a/src/Gui/SoDatumLabel.cpp +++ b/src/Gui/SoDatumLabel.cpp @@ -317,21 +317,6 @@ private: std::vector computeRadiusDiameterBBox() const { - SbVec2s imgsize; - int nc {}; - int srcw = 1; - int srch = 1; - - const unsigned char * dataptr = label->image.getValue(imgsize, nc); - if (dataptr) { - srcw = imgsize[0]; - srch = imgsize[1]; - } - - float aspectRatio = (float) srcw / (float) srch; - float imgHeight = scale * (float) (srch); - float imgWidth = aspectRatio * imgHeight; - // get the points stored in the pnt field const SbVec3f *points = label->pnts.getValues(0); if (label->pnts.getNum() < 2) { @@ -342,7 +327,6 @@ private: SoDatumLabel::DiameterGeometry geom = label->calculateDiameterGeometry(points); std::vector corners; - float margin = imgHeight / 4.0F; // include main points and line segment points around text corners.push_back(geom.p1);