Remove pointless try\catch in AssFile;GetScriptInfoAsInt (wx functions don't throw exceptions)

Originally committed to SVN as r5776.
This commit is contained in:
Thomas Goyne 2011-10-25 01:16:47 +00:00
parent 2ad0342103
commit af19dad6ea
1 changed files with 1 additions and 6 deletions

View File

@ -620,12 +620,7 @@ wxString AssFile::GetScriptInfo(wxString key) {
int AssFile::GetScriptInfoAsInt(const wxString key) {
long temp = 0;
try {
GetScriptInfo(key).ToLong(&temp);
}
catch (...) {
temp = 0;
}
GetScriptInfo(key).ToLong(&temp);
return temp;
}