Skip to content

Commit

Permalink
Remove deepscan comments
Browse files Browse the repository at this point in the history
No longer used for JSROOT
  • Loading branch information
linev committed Sep 12, 2024
1 parent c1c54d0 commit c90ef0c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion modules/geom/TGeoPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function expandGeoObject(parent, obj) {
}

if (!subnodes && (shape?._typename === clTGeoCompositeShape) && shape?.fNode) {
if (!parent._childs) { // deepscan-disable-line
if (!parent._childs) {
createItem(parent, shape.fNode.fLeft, 'Left');
createItem(parent, shape.fNode.fRight, 'Right');
}
Expand Down
2 changes: 1 addition & 1 deletion modules/geom/geobase.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ class ClonedNodes {
issimple = (clone.matrix[k] === ((k === 5) || (k === 10) || (k === 15) ? 1 : 0));
if (issimple) delete clone.matrix;
}
if (clone.matrix && (kind === kindEve)) // deepscan-disable-line INSUFFICIENT_NULL_CHECK
if (clone.matrix && (kind === kindEve))
clone.abs_matrix = true;
}
if (shape) {
Expand Down
2 changes: 1 addition & 1 deletion modules/gui/HierarchyPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2531,7 +2531,7 @@ class HierarchyPainter extends BasePainter {
hitem = d.last;
}

if (hitem) { // deepscan-disable-line
if (hitem) {
// check that item is visible (opened), otherwise should enable parent

let prnt = hitem._parent;
Expand Down
6 changes: 3 additions & 3 deletions modules/hist/TGraph2DPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ class TGraphDelaunay {
continue; // goto L50;
}

if (skip_this_triangle) break; // deepscan-disable-line
if (skip_this_triangle) break;

/* Error("Interpolate", "Should not get to here"); */
// may as well soldier on
Expand Down Expand Up @@ -679,7 +679,7 @@ class TGraphDelaunay {
// vector (dx3,dy3) is expressible as a sum of the other two vectors
// with positive coefficients -> i.e. it lies between the other two vectors
if (l === 1) {
f = m; o1 = p; o2 = n; // deepscan-disable-line
f = m; o1 = p; o2 = n;
} else if (l === 2) {
f = p; o1 = n; o2 = m;
} else {
Expand Down Expand Up @@ -798,7 +798,7 @@ class TGraphDelaunay {
}
}
}
if (shouldbein) // deepscan-disable-line
if (shouldbein)
console.error(`Interpolate Point outside hull when expected inside: this point could be dodgy ${xx} ${yy} ${ntris_tried}`);
return thevalue;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/hist2d/TH2Painter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function buildHist2dContour(histo, handle, levels, palette, contour_func) {
for (k = 0; k < 4; k++)
ir[k] = LevelSearch(zc[k]);

if ((ir[0] !== ir[1]) || (ir[1] !== ir[2]) || (ir[2] !== ir[3]) || (ir[3] !== ir[0])) { // deepscan-disable-line
if ((ir[0] !== ir[1]) || (ir[1] !== ir[2]) || (ir[2] !== ir[3]) || (ir[3] !== ir[0])) {
x[3] = x[0] = (arrx[i] + arrx[i+1])/2;
x[2] = x[1] = (arrx[i+1] + arrx[i+2])/2;

Expand Down Expand Up @@ -390,7 +390,7 @@ class Triangles3DHandler {

// check if any(contours for given level exists
if (((side1 > 0) || (side2 > 0) || (side3 > 0)) &&
((side1 !== side2) || (side2 !== side3) || (side3 !== side1))) // deepscan-disable-line
((side1 !== side2) || (side2 !== side3) || (side3 !== side1)))
++ngridsegments;

continue;
Expand Down

0 comments on commit c90ef0c

Please sign in to comment.