[gjs] cairo-pattern: Remove some dead code
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] cairo-pattern: Remove some dead code
- Date: Thu, 2 May 2013 21:25:56 +0000 (UTC)
commit 16a13450938aef280b3259e608ad8b9be0bb7090
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Apr 7 16:42:25 2013 -0400
cairo-pattern: Remove some dead code
Spotted by Coverity
https://bugzilla.gnome.org/show_bug.cgi?id=697816
modules/cairo-pattern.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/modules/cairo-pattern.c b/modules/cairo-pattern.c
index 220c798..63eb9a3 100644
--- a/modules/cairo-pattern.c
+++ b/modules/cairo-pattern.c
@@ -154,8 +154,6 @@ JSObject *
gjs_cairo_pattern_from_pattern(JSContext *context,
cairo_pattern_t *pattern)
{
- JSObject *object;
-
g_return_val_if_fail(context != NULL, NULL);
g_return_val_if_fail(pattern != NULL, NULL);
@@ -175,8 +173,6 @@ gjs_cairo_pattern_from_pattern(JSContext *context,
gjs_throw(context, "failed to create pattern, unsupported pattern type %d",
cairo_pattern_get_type(pattern));
return NULL;
-
- return object;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]