[shotwell] plugins: Drop unrechable try/catch
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] plugins: Drop unrechable try/catch
- Date: Tue, 30 Jun 2020 11:46:27 +0000 (UTC)
commit cb5bd91929d1ec5c616fc800a4b10fc3dfb43775
Author: Jens Georg <mail jensge org>
Date: Tue Jun 30 13:39:01 2020 +0200
plugins: Drop unrechable try/catch
plugins/common/WebAuthenticationPane.vala | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/plugins/common/WebAuthenticationPane.vala b/plugins/common/WebAuthenticationPane.vala
index 02cffb2b..f754b5d2 100644
--- a/plugins/common/WebAuthenticationPane.vala
+++ b/plugins/common/WebAuthenticationPane.vala
@@ -19,13 +19,8 @@ namespace Shotwell.Plugins.Common {
private Gtk.Entry entry;
public void clear() {
- try {
- debug("Clearing the data of WebKit...");
- this.webview.get_website_data_manager().clear.begin(WebKit.WebsiteDataTypes.ALL,
(GLib.TimeSpan)0);
- } catch (Error e) {
- // Do nothing
- message("Failed to clear data: %s", e.message);
- }
+ debug("Clearing the data of WebKit...");
+ this.webview.get_website_data_manager().clear.begin(WebKit.WebsiteDataTypes.ALL,
(GLib.TimeSpan)0);
}
public override void constructed () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]