Skip to content

Commit b33f9de

Browse files
committed
mpl: remove unused APIs to avoid confusion
Signed-off-by: Arthur Koucher <[email protected]>
1 parent 845d02a commit b33f9de

File tree

2 files changed

+3
-22
lines changed

2 files changed

+3
-22
lines changed

src/mpl/src/object.cpp

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -841,16 +841,7 @@ bool HardMacro::operator==(const HardMacro& macro) const
841841
}
842842

843843
// Cluster support to identify if a fixed terminal correponds
844-
// to a cluster of unplaced IO pins when running HardMacro SA.
845-
bool HardMacro::isClusterOfUnplacedIOPins() const
846-
{
847-
if (!cluster_) {
848-
return false;
849-
}
850-
851-
return cluster_->isClusterOfUnplacedIOPins();
852-
}
853-
844+
// to the cluster of unconstrained IO pins when running HardMacro SA.
854845
bool HardMacro::isClusterOfUnconstrainedIOPins() const
855846
{
856847
if (!cluster_) {
@@ -1343,15 +1334,8 @@ bool SoftMacro::isMixedCluster() const
13431334
return (cluster_->getClusterType() == MixedCluster);
13441335
}
13451336

1346-
bool SoftMacro::isClusterOfUnplacedIOPins() const
1347-
{
1348-
if (!cluster_) {
1349-
return false;
1350-
}
1351-
1352-
return cluster_->isClusterOfUnplacedIOPins();
1353-
}
1354-
1337+
// Used to identify if a fixed terminal correponds to the cluster of
1338+
// unconstrained IO pins when running SoftMacro SA.
13551339
bool SoftMacro::isClusterOfUnconstrainedIOPins() const
13561340
{
13571341
if (!cluster_) {

src/mpl/src/object.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,6 @@ class HardMacro
360360
bool operator==(const HardMacro& macro) const;
361361

362362
void setCluster(Cluster* cluster) { cluster_ = cluster; }
363-
Cluster* getCluster() const { return cluster_; }
364-
bool isClusterOfUnplacedIOPins() const;
365363
bool isClusterOfUnconstrainedIOPins() const;
366364

367365
// Get Physical Information
@@ -536,7 +534,6 @@ class SoftMacro
536534
bool isMacroCluster() const;
537535
bool isStdCellCluster() const;
538536
bool isMixedCluster() const;
539-
bool isClusterOfUnplacedIOPins() const;
540537
bool isClusterOfUnconstrainedIOPins() const;
541538
void setLocationF(float x, float y);
542539
void setShapeF(float width, float height);

0 commit comments

Comments
 (0)