forked from PAWPAW-Mirror/lib_xua
Remove dead code + warning
This commit is contained in:
@@ -89,27 +89,10 @@ static int abs(int x)
|
|||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int channelContainsControlToken(chanend x)
|
|
||||||
{
|
|
||||||
unsigned char tmpc;
|
|
||||||
|
|
||||||
select
|
|
||||||
{
|
|
||||||
case inct_byref(x, tmpc):
|
|
||||||
return 1;
|
|
||||||
default:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void outInterrupt(chanend c_interruptControl, int value)
|
static void outInterrupt(chanend c_interruptControl, int value)
|
||||||
{
|
{
|
||||||
/* Non-blocking check for control token */
|
outuint(c_interruptControl, value);
|
||||||
//if (channelContainsControlToken(c_interruptControl))
|
outct(c_interruptControl, XS1_CT_END);
|
||||||
{
|
|
||||||
outuint(c_interruptControl, value);
|
|
||||||
outct(c_interruptControl, XS1_CT_END);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user