mirror of https://github.com/KLayout/klayout.git
Removed debug leftover code
This commit is contained in:
parent
cd4516393b
commit
611f62e73f
|
|
@ -92,7 +92,6 @@ db::Connectivity NetlistDeviceExtractorMOS3Transistor::get_connectivity (const d
|
|||
|
||||
} else {
|
||||
|
||||
|
||||
tl_assert (layers.size () >= 4);
|
||||
|
||||
unsigned int sdiff = layers [0];
|
||||
|
|
@ -101,11 +100,9 @@ db::Connectivity NetlistDeviceExtractorMOS3Transistor::get_connectivity (const d
|
|||
|
||||
// The layer definition is diff, gate
|
||||
db::Connectivity conn;
|
||||
if (false) { // @@@
|
||||
// collect all connected diffusion shapes
|
||||
conn.connect (sdiff, sdiff);
|
||||
conn.connect (ddiff, ddiff);
|
||||
} // @@@
|
||||
// collect all connected gate shapes
|
||||
conn.connect (gate, gate);
|
||||
// connect gate with diff to detect gate/diffusion boundary
|
||||
|
|
|
|||
|
|
@ -208,3 +208,16 @@ TEST(4_FlatAndEmptyInput)
|
|||
EXPECT_EQ ((dr1 - dr3).to_string (), "(0,0;0,1000;1000,1000;1000,0)");
|
||||
}
|
||||
|
||||
TEST(5_State)
|
||||
{
|
||||
db::DeepShapeStore store;
|
||||
|
||||
store.set_threads (4);
|
||||
EXPECT_EQ (store.threads (), 4);
|
||||
store.push_state ();
|
||||
store.set_threads (2);
|
||||
EXPECT_EQ (store.threads (), 2);
|
||||
store.pop_state ();
|
||||
EXPECT_EQ (store.threads (), 4);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue