Commits

Burcin Erocal  committed b87f395

Remove comparison function left over from modified printing order.

  • Participants
  • Parent commits 073abbb

Comments (0)

Files changed (1)

File ginac/mul.cpp

 	return tdegree;
 }
 
-/*
-int mul::compare(const basic& other) const
-{
-	static const tinfo_t function_id = find_tinfo_key("function");
-	static const tinfo_t fderivative_id = find_tinfo_key("fderivative");
-	static const tinfo_t pow_id = find_tinfo_key("power");
-	static const tinfo_t symbol_id = find_tinfo_key("symbol");
-	const tinfo_t typeid_this = tinfo();
-	const tinfo_t typeid_other = other.tinfo();
-	if (typeid_this==typeid_other) {
-		GINAC_ASSERT(typeid(*this)==typeid(other));
-		return compare_same_type(other);
-	} else if (typeid_other == pow_id) {
-		return compare_pow(static_cast<const power&>(other));
-	} else if (typeid_other == symbol_id) {
-		return compare_symbol(static_cast<const symbol&>(other));
-	} else if (typeid_other == function_id ||
-			typeid_other == fderivative_id) {
-		return -1;
-	} else {
-		return (typeid_this<typeid_other ? -1 : 1);
-	}
-}
-*/
-
-
 int mul::compare_same_type(const basic & other) const
 {
 	return inherited::compare_same_type(other);