Removed debug leftover code

This commit is contained in:
Matthias Koefferlein 2019-10-17 22:47:43 +02:00
parent cd4516393b
commit 611f62e73f
2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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);
}