(svn r3051) Remove the unused function RemoteSubsidyAdd()

This commit is contained in:
tron
2005-10-16 14:07:11 +00:00
parent e6b0b1e33d
commit 24250c6a3a
5 changed files with 7 additions and 43 deletions

View File

@@ -1000,23 +1000,6 @@ static bool CheckSubsidyDuplicate(Subsidy *s)
return false;
}
void RemoteSubsidyAdd(Subsidy *s_new)
{
Subsidy *s;
Pair pair;
// search the first free subsidy
for(s=_subsidies; s != endof(_subsidies); s++)
if (s->cargo_type == CT_INVALID)
break;
memcpy(s,s_new,sizeof(Subsidy));
pair = SetupSubsidyDecodeParam(s, 0);
AddNewsItem(STR_2030_SERVICE_SUBSIDY_OFFERED, NEWS_FLAGS(NM_NORMAL, NF_TILE, NT_SUBSIDIES, 0), pair.a, pair.b);
InvalidateWindow(WC_SUBSIDIES_LIST, 0);
}
static void SubsidyMonthlyHandler(void)
{