[Kstars-devel] KDE/kdeedu/kstars/kstars/htmesh
Alexey Khudyakov
alexey.skladnoy at gmail.com
Sun Feb 27 20:48:52 CET 2011
SVN commit 1222969 by khudyakov:
remove varlen_. It's always flase or undefined.
It's used only in saveTrixel which is used in
testTrixel anf testPartial which are called from
intersect which in turn sets varlen_ to false.
Therefore I assume it's safe to remove varlen_
CCMAIL: kstars-devel at kde.org
varlen_ is always false on undefine. Remove it
M +1 -8 RangeConvex.cpp
M +0 -1 RangeConvex.h
--- trunk/KDE/kdeedu/kstars/kstars/htmesh/RangeConvex.cpp #1222968:1222969
@@ -24,9 +24,7 @@
// ===========================================================================
RangeConvex::RangeConvex()
-{
- varlen_ = false;
-}
+{}
/////////////CONSTRUCTOR FROM A TRIANGLE//////////////////
//
@@ -518,7 +516,6 @@
{
hr = htmrange;
index_ = idx;
- varlen_ = false;
addlevel_ = idx->maxlevel_ - idx->buildlevel_;
simplify(); // don't work too hard...
@@ -546,10 +543,6 @@
IDHIGHBIT = IDHIGHBIT << 63;
IDHIGHBIT2 = IDHIGHBIT2 << 62;
#endif
- if(varlen_){
- hr->mergeRange(htmid, htmid);
- return;
- }
for(i = 0; i < IDSIZE; i+=2) {
if ( (htmid << i) & IDHIGHBIT ) break;
--- trunk/KDE/kdeedu/kstars/kstars/htmesh/RangeConvex.h #1222968:1222969
@@ -194,7 +194,6 @@
typedef std::vector <SpatialConstraint> ValueVectorSpvecCon;
ValueVectorSpvecCon constraints_; // The vector of constraints
- bool varlen_;
const SpatialIndex * index_; // A pointer to the index
typedef std::vector<SpatialVector> ValueVectorSpvec;
ValueVectorSpvec corners_;
More information about the Kstars-devel
mailing list