From af19dad6eaafb554243c3ed643f8279eda902fa7 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 25 Oct 2011 01:16:47 +0000 Subject: [PATCH] Remove pointless try\catch in AssFile;GetScriptInfoAsInt (wx functions don't throw exceptions) Originally committed to SVN as r5776. --- aegisub/src/ass_file.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/aegisub/src/ass_file.cpp b/aegisub/src/ass_file.cpp index 4d067133f..8cb56d542 100644 --- a/aegisub/src/ass_file.cpp +++ b/aegisub/src/ass_file.cpp @@ -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; }