forked from mia/Aegisub
Remove pointless try\catch in AssFile;GetScriptInfoAsInt (wx functions don't throw exceptions)
Originally committed to SVN as r5776.
This commit is contained in:
parent
2ad0342103
commit
af19dad6ea
1 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
return temp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue