]> www.ginac.de Git - ginac.git/commitdiff
* Remove bogus counter in sqrfree_yun().
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Fri, 13 Apr 2001 18:26:46 +0000 (18:26 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Fri, 13 Apr 2001 18:26:46 +0000 (18:26 +0000)
ginac/normal.cpp

index 334bf95ae78647b496a193cd5d47b2f60269b090..9c9082acc3c87251a4d66edb05245509d66382c3 100644 (file)
@@ -1700,7 +1700,6 @@ ex lcm(const ex &a, const ex &b, bool check_args)
  *  @return   vector of factors sorted in ascending degree */
 static exvector sqrfree_yun(const ex &a, const symbol &x)
 {
  *  @return   vector of factors sorted in ascending degree */
 static exvector sqrfree_yun(const ex &a, const symbol &x)
 {
-       int i = 0;
        exvector res;
        ex w = a;
        ex z = w.diff(x);
        exvector res;
        ex w = a;
        ex z = w.diff(x);
@@ -1716,7 +1715,6 @@ static exvector sqrfree_yun(const ex &a, const symbol &x)
                z = y - w.diff(x);
                g = gcd(w, z);
                res.push_back(g);
                z = y - w.diff(x);
                g = gcd(w, z);
                res.push_back(g);
-               ++i;
        } while (!z.is_zero());
        return res;
 }
        } while (!z.is_zero());
        return res;
 }