Reverted some changes, removed idle code

This commit is contained in:
Matthias Koefferlein 2022-02-18 18:43:02 +01:00
parent 834dfa6614
commit a133a8f43b
3 changed files with 3 additions and 56 deletions

View File

@ -2676,12 +2676,6 @@ private:
template <class T>
void transform_delegate (const T &tr, db::ArrayRepository *array_rep)
{
// No need to do anything if there are no vector-transforming components as displacement
// is entirely handled outside the delegate
if (tr.is_unity_for_vector ()) {
return;
}
// transform the delegate
if (! array_rep && ! mp_base->in_repository) {

View File

@ -437,13 +437,6 @@ ContextCache::find_layout_context (db::cell_index_type from, db::cell_index_type
// ------------------------------------------------------------
// Scale and snap a layout
static bool
is_on_grid (const db::Vector &v, db::Coord g, db::Coord m, db::Coord d)
{
int64_t dg = int64_t (g) * int64_t (d);
return (int64_t (v.x ()) * m) % dg == 0 && (int64_t (v.y ()) * m) % dg == 0;
}
static void
scale_and_snap_cell_instance (db::CellInstArray &ci, const db::ICplxTrans &tr, const db::ICplxTrans &trinv, const db::Vector &delta, db::Coord g, db::Coord m, db::Coord d)
{

View File

@ -77,14 +77,6 @@ struct default_trans
return true;
}
/**
* @brief Test, whether this is a unit transformation for vectors - i.e. ignoring displacements
*/
bool is_unity_for_vector () const
{
return true;
}
/**
* @brief Orthogonal predicate
*
@ -418,14 +410,6 @@ public:
return m_f == 0;
}
/**
* @brief Test, whether this is a unit transformation for vectors - i.e. ignoring displacements
*/
bool is_unity_for_vector () const
{
return m_f == 0;
}
/**
* @brief The standard constructor using angle and mirror flag
*
@ -885,14 +869,6 @@ public:
return m_u.equal (displacement_type ());
}
/**
* @brief Test, whether this is a unit transformation for vectors - i.e. ignoring displacements
*/
bool is_unity_for_vector () const
{
return true;
}
/**
* @brief Inversion
*
@ -1335,14 +1311,6 @@ public:
return m_u.equal (displacement_type ()) && fixpoint_trans<C>::is_unity ();
}
/**
* @brief Test, whether this is a unit transformation for vectors - i.e. ignoring displacements
*/
bool is_unity_for_vector () const
{
return fixpoint_trans<C>::is_unity ();
}
/**
* @brief The transformation of a distance
*
@ -1906,9 +1874,9 @@ public:
}
/**
* @brief Test, whether this is a unit transformation for vectors - i.e. ignoring displacements
* @brief Test, whether this is a unit transformation
*/
bool is_unity_for_vector () const
bool is_unity () const
{
if (fabs (m_mag - 1.0) > eps_f ()) {
return false;
@ -1919,15 +1887,7 @@ public:
if (fabs (m_cos - 1.0) > eps_f ()) {
return false;
}
return true;
}
/**
* @brief Test, whether this is a unit transformation
*/
bool is_unity () const
{
return is_unity_for_vector () && disp ().equal (displacement_type ());
return disp ().equal (displacement_type ());
}
/**