procmime_get_part_as_inputstream doesn't touch error, so remove it
[claws.git] / src / plugins / litehtml_viewer / lh_widget.cpp
index 8e8e808f94c4fc6ad3f86f8c0ae660d8e31f7410..30b6fb815c7b1034c617dd69a9a97d7c53684926 100644 (file)
@@ -454,14 +454,9 @@ GdkPixbuf *lh_widget::get_local_image(const litehtml::tstring url) const
                        GInputStream *stream;
                        GError *error = NULL;
 
-                       stream = procmime_get_part_as_inputstream(p, &error);
-                       if (error != NULL || stream == NULL) {
-                               if (error != NULL) {
-                                       g_warning("Couldn't get image MIME part: %s\n", error->message);
-                                       g_error_free(error);
-                               } else {
-                                       g_warning("Could not decode MIME part\n");
-                               }
+                       stream = procmime_get_part_as_inputstream(p);
+                       if (stream == NULL) {
+                               g_warning("Could not decode MIME part\n");
                                return NULL;
                        }