From bb1ce1ca4c192bd204e74ed36a4e214f6d42ce61 Mon Sep 17 00:00:00 2001
From: "yu.dongliang" <18588496441@163.com>
Date: Tue, 31 Oct 2023 15:57:23 +0800
Subject: [PATCH] __ses_layout_cx()

---
 ses_layout.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/ses_layout.c b/ses_layout.c
index 680354f..e11c96e 100644
--- a/ses_layout.c
+++ b/ses_layout.c
@@ -987,12 +987,8 @@ static void __ses_layout_cx(ScfEfunction* f, int d)
 
 _set_px:
 		for (k = 0; k < c->n_pins; k++) {
-			p  =        c->pins[k];
-
-			if (k < 2)
-				p->x  = c->x;
-			else
-				p->x += c->x - tmp;
+			p         = c->pins[k];
+			p->x     += c->x - tmp;
 		}
 
 		scf_logd("c%ld->x: %d\n", c->id, c->x);
@@ -1019,8 +1015,6 @@ static void __ses_xchg_ce(ScfEfunction* f, int d)
 		pc = c->pins[SCF_EDA_NPN_C];
 		pe = c->pins[SCF_EDA_NPN_E];
 
-//		pc->x = (pc->x + c->x * 3) / 4;
-
 		if (pc->y > pe->y)
 			SCF_XCHG(pc, pe);
 
-- 
2.25.1