lef: cleanup remove unused local/static variables
Many appear to be the result of copy-and-paste from a similar func nearby.
This commit is contained in:
parent
9d0cd63a4e
commit
56bf27548d
|
|
@ -1444,7 +1444,7 @@ DefReadPins(
|
||||||
{
|
{
|
||||||
char *token;
|
char *token;
|
||||||
char pinname[LEF_LINE_MAX];
|
char pinname[LEF_LINE_MAX];
|
||||||
int keyword, subkey, values, flags;
|
int keyword, subkey, flags;
|
||||||
int processed = 0;
|
int processed = 0;
|
||||||
int pinDir = PORT_CLASS_DEFAULT;
|
int pinDir = PORT_CLASS_DEFAULT;
|
||||||
int pinUse = PORT_USE_DEFAULT;
|
int pinUse = PORT_USE_DEFAULT;
|
||||||
|
|
@ -1454,7 +1454,6 @@ DefReadPins(
|
||||||
LinkedRect *rectList = NULL, *newRect;
|
LinkedRect *rectList = NULL, *newRect;
|
||||||
Rect *currect, topRect;
|
Rect *currect, topRect;
|
||||||
Transform t;
|
Transform t;
|
||||||
lefLayer *lefl;
|
|
||||||
bool pending = FALSE;
|
bool pending = FALSE;
|
||||||
bool hasports = FALSE;
|
bool hasports = FALSE;
|
||||||
|
|
||||||
|
|
@ -1772,12 +1771,10 @@ DefReadBlockages(
|
||||||
int total)
|
int total)
|
||||||
{
|
{
|
||||||
char *token;
|
char *token;
|
||||||
int keyword, subkey, values;
|
int keyword, subkey;
|
||||||
int processed = 0;
|
int processed = 0;
|
||||||
TileType curlayer;
|
TileType curlayer;
|
||||||
Rect *currect;
|
Rect *currect;
|
||||||
lefLayer *lefl;
|
|
||||||
HashEntry *he;
|
|
||||||
|
|
||||||
static const char * const block_keys[] = {
|
static const char * const block_keys[] = {
|
||||||
"-",
|
"-",
|
||||||
|
|
@ -1890,10 +1887,9 @@ DefReadVias(
|
||||||
{
|
{
|
||||||
char *token;
|
char *token;
|
||||||
char vianame[LEF_LINE_MAX];
|
char vianame[LEF_LINE_MAX];
|
||||||
int keyword, subkey, values;
|
int keyword, subkey;
|
||||||
int processed = 0;
|
int processed = 0;
|
||||||
TileType curlayer;
|
TileType curlayer;
|
||||||
Rect *currect;
|
|
||||||
lefLayer *lefl;
|
lefLayer *lefl;
|
||||||
HashEntry *he;
|
HashEntry *he;
|
||||||
|
|
||||||
|
|
@ -2177,7 +2173,7 @@ DefReadComponents(
|
||||||
Transform t;
|
Transform t;
|
||||||
char *token, *dptr;
|
char *token, *dptr;
|
||||||
char usename[512];
|
char usename[512];
|
||||||
int keyword, subkey, values;
|
int keyword, subkey;
|
||||||
int processed = 0;
|
int processed = 0;
|
||||||
|
|
||||||
static const char * const component_keys[] = {
|
static const char * const component_keys[] = {
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,6 @@ defWriteHeader(
|
||||||
float oscale,
|
float oscale,
|
||||||
int units) /* Units for UNITS; could be derived from oscale */
|
int units) /* Units for UNITS; could be derived from oscale */
|
||||||
{
|
{
|
||||||
TileType type;
|
|
||||||
char *propvalue;
|
char *propvalue;
|
||||||
bool propfound;
|
bool propfound;
|
||||||
|
|
||||||
|
|
@ -294,7 +293,6 @@ defnodeCount(
|
||||||
NetCount *total)
|
NetCount *total)
|
||||||
{
|
{
|
||||||
HierName *hierName;
|
HierName *hierName;
|
||||||
char ndn[256];
|
|
||||||
char *cp, clast;
|
char *cp, clast;
|
||||||
|
|
||||||
/* Ignore the substrate node if it is not connected to any routing */
|
/* Ignore the substrate node if it is not connected to any routing */
|
||||||
|
|
@ -530,7 +528,6 @@ defWriteRouteWidth(
|
||||||
DefData *defdata,
|
DefData *defdata,
|
||||||
int width)
|
int width)
|
||||||
{
|
{
|
||||||
float oscale = defdata->scale;
|
|
||||||
char numstr[32];
|
char numstr[32];
|
||||||
sprintf(numstr, "%.10g", ((float)width * defdata->scale));
|
sprintf(numstr, "%.10g", ((float)width * defdata->scale));
|
||||||
defCheckForBreak(strlen(numstr) + 1, defdata);
|
defCheckForBreak(strlen(numstr) + 1, defdata);
|
||||||
|
|
@ -666,10 +663,8 @@ defnodeVisit(
|
||||||
char locndn[256];
|
char locndn[256];
|
||||||
FILE *f = defdata->f;
|
FILE *f = defdata->f;
|
||||||
CellDef *def = defdata->def;
|
CellDef *def = defdata->def;
|
||||||
float oscale = defdata->scale;
|
|
||||||
TileTypeBitMask tmask, *rmask;
|
TileTypeBitMask tmask, *rmask;
|
||||||
TileType nodetype, magictype;
|
TileType magictype;
|
||||||
Rect *nodeloc;
|
|
||||||
LinkedRect *lr;
|
LinkedRect *lr;
|
||||||
EFNodeName *thisnn;
|
EFNodeName *thisnn;
|
||||||
int defNetGeometryFunc(Tile *tile, int plane, DefData *defdata); /* Forward declaration */
|
int defNetGeometryFunc(Tile *tile, int plane, DefData *defdata); /* Forward declaration */
|
||||||
|
|
@ -1168,7 +1163,6 @@ defNetGeometryFunc(
|
||||||
int ndv = (h > w) ? w : h;
|
int ndv = (h > w) ? w : h;
|
||||||
char ndname[100];
|
char ndname[100];
|
||||||
LefRules *ruleset;
|
LefRules *ruleset;
|
||||||
lefRule *rule;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TxPrintf("Net at (%d, %d) has width %d, default width is %d\n",
|
TxPrintf("Net at (%d, %d) has width %d, default width is %d\n",
|
||||||
|
|
@ -1718,7 +1712,7 @@ defCountViaFunc(
|
||||||
TileType ttype = TiGetType(tile), ctype, rtype;
|
TileType ttype = TiGetType(tile), ctype, rtype;
|
||||||
TileTypeBitMask *rmask, *rmask2;
|
TileTypeBitMask *rmask, *rmask2;
|
||||||
Tile *tp;
|
Tile *tp;
|
||||||
char *lname, vname[100], *vp, posstr[24];
|
char *lname, vname[100], posstr[24];
|
||||||
Rect r, r2, rorig;
|
Rect r, r2, rorig;
|
||||||
int w, h, offx, offy, sdist, lorient, horient;
|
int w, h, offx, offy, sdist, lorient, horient;
|
||||||
int ldist, hdist, sldist, shdist, pNum;
|
int ldist, hdist, sldist, shdist, pNum;
|
||||||
|
|
@ -2760,8 +2754,7 @@ arrayDefFunc(
|
||||||
int sx = use->cu_xhi - use->cu_xlo;
|
int sx = use->cu_xhi - use->cu_xlo;
|
||||||
int sy = use->cu_yhi - use->cu_ylo;
|
int sy = use->cu_yhi - use->cu_ylo;
|
||||||
char idx[32];
|
char idx[32];
|
||||||
Rect box, rect, *r, bbrect, defrect;
|
Rect box, rect, *r;
|
||||||
int xoff, yoff;
|
|
||||||
|
|
||||||
idx[0] = 0;
|
idx[0] = 0;
|
||||||
|
|
||||||
|
|
@ -2770,7 +2763,6 @@ arrayDefFunc(
|
||||||
|
|
||||||
r = &use->cu_def->cd_bbox;
|
r = &use->cu_def->cd_bbox;
|
||||||
|
|
||||||
xoff = yoff = 0;
|
|
||||||
if (use->cu_def->cd_flags & CDFIXEDBBOX)
|
if (use->cu_def->cd_flags & CDFIXEDBBOX)
|
||||||
{
|
{
|
||||||
char *propval;
|
char *propval;
|
||||||
|
|
@ -2954,8 +2946,6 @@ DefWriteCell(
|
||||||
HashTable defViaTable;
|
HashTable defViaTable;
|
||||||
|
|
||||||
LefMapping *lefMagicToLefLayer;
|
LefMapping *lefMagicToLefLayer;
|
||||||
int i;
|
|
||||||
lefLayer *lefl;
|
|
||||||
HashEntry *he;
|
HashEntry *he;
|
||||||
HashSearch hs;
|
HashSearch hs;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,9 +87,7 @@ LefEstimate(
|
||||||
int total,
|
int total,
|
||||||
const char *item_name)
|
const char *item_name)
|
||||||
{
|
{
|
||||||
static int check_interval, partition;
|
|
||||||
static struct timeval tv_start;
|
static struct timeval tv_start;
|
||||||
static float last_time;
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
struct timezone tz;
|
struct timezone tz;
|
||||||
float cur_time, time_left;
|
float cur_time, time_left;
|
||||||
|
|
@ -463,7 +461,7 @@ LefParseEndStatement(
|
||||||
const char *match)
|
const char *match)
|
||||||
{
|
{
|
||||||
char *token;
|
char *token;
|
||||||
int keyword, words;
|
int keyword;
|
||||||
const char * match_name[2];
|
const char * match_name[2];
|
||||||
|
|
||||||
static const char * const end_section[] = {
|
static const char * const end_section[] = {
|
||||||
|
|
@ -2496,7 +2494,7 @@ LefGenViaGeometry(
|
||||||
float oscale) /* output scaling */
|
float oscale) /* output scaling */
|
||||||
{
|
{
|
||||||
Rect rect;
|
Rect rect;
|
||||||
int i, j, x, y, w, h, sw, sh;
|
int i, j, x, y, w, h;
|
||||||
LinkedRect *viaLR;
|
LinkedRect *viaLR;
|
||||||
float hscale = oscale / 2;
|
float hscale = oscale / 2;
|
||||||
|
|
||||||
|
|
@ -2662,7 +2660,6 @@ LefReadLayerSection(
|
||||||
{
|
{
|
||||||
char *token;
|
char *token;
|
||||||
int keyword, typekey;
|
int keyword, typekey;
|
||||||
Rect viaArea;
|
|
||||||
TileType curlayer = -1;
|
TileType curlayer = -1;
|
||||||
float fvalue, oscale;
|
float fvalue, oscale;
|
||||||
|
|
||||||
|
|
@ -2719,7 +2716,6 @@ LefReadLayerSection(
|
||||||
};
|
};
|
||||||
|
|
||||||
oscale = CIFGetOutputScale(1000);
|
oscale = CIFGetOutputScale(1000);
|
||||||
viaArea = GeoNullRect;
|
|
||||||
|
|
||||||
while ((token = LefNextToken(f, TRUE)) != NULL)
|
while ((token = LefNextToken(f, TRUE)) != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -257,7 +257,6 @@ lefWriteHeader(
|
||||||
HashTable *propTable, /* Hash table of property definitions */
|
HashTable *propTable, /* Hash table of property definitions */
|
||||||
HashTable *siteTable) /* Hash table of sites used */
|
HashTable *siteTable) /* Hash table of sites used */
|
||||||
{
|
{
|
||||||
TileType type;
|
|
||||||
HashSearch hs;
|
HashSearch hs;
|
||||||
HashEntry *he;
|
HashEntry *he;
|
||||||
int nprops;
|
int nprops;
|
||||||
|
|
@ -732,10 +731,9 @@ lefYankContacts(
|
||||||
{
|
{
|
||||||
lefClient *lefdata = (lefClient *)cdata;
|
lefClient *lefdata = (lefClient *)cdata;
|
||||||
Rect area;
|
Rect area;
|
||||||
TileType ttype, ptype, stype;
|
TileType ttype, stype;
|
||||||
LefMapping *lefMagicToLefLayer;
|
LefMapping *lefMagicToLefLayer;
|
||||||
TileTypeBitMask sMask, *lrmask;
|
TileTypeBitMask *lrmask;
|
||||||
bool iscut;
|
|
||||||
|
|
||||||
/* Ignore marked tiles */
|
/* Ignore marked tiles */
|
||||||
if (tile->ti_client != (ClientData)CLIENTDEFAULT) return 0;
|
if (tile->ti_client != (ClientData)CLIENTDEFAULT) return 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue