From 95280060b869f266beaff023dd63d74905c39ef4 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 15 Jun 2019 13:09:49 +0200 Subject: No need for settings class --- common/router1.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'common/router1.cc') diff --git a/common/router1.cc b/common/router1.cc index 28a422c8..02c817c7 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -733,12 +733,12 @@ struct Router1 NEXTPNR_NAMESPACE_BEGIN -Router1Cfg::Router1Cfg(Context *ctx) : Settings(ctx) +Router1Cfg::Router1Cfg(Context *ctx) { - maxIterCnt = get("router1/maxIterCnt", 200); - cleanupReroute = get("router1/cleanupReroute", true); - fullCleanupReroute = get("router1/fullCleanupReroute", true); - useEstimate = get("router1/useEstimate", true); + maxIterCnt = ctx->setting("router1/maxIterCnt", 200); + cleanupReroute = ctx->setting("router1/cleanupReroute", true); + fullCleanupReroute = ctx->setting("router1/fullCleanupReroute", true); + useEstimate = ctx->setting("router1/useEstimate", true); wireRipupPenalty = ctx->getRipupDelayPenalty(); netRipupPenalty = 10 * ctx->getRipupDelayPenalty(); -- cgit v1.2.3