[gimp] pdb: Mark various pdb args as dead, and regen code
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pdb: Mark various pdb args as dead, and regen code
- Date: Sat, 8 Oct 2011 13:43:24 +0000 (UTC)
commit 61660b33d0c63c8f45d76c1f38eb32564957d001
Author: Mukund Sivaraman <muks banu com>
Date: Sat Oct 8 19:13:03 2011 +0530
pdb: Mark various pdb args as dead, and regen code
app/pdb/convert-cmds.c | 2 --
app/pdb/drawable-transform-cmds.c | 10 ----------
app/pdb/floating-sel-cmds.c | 7 -------
app/pdb/text-tool-cmds.c | 16 ----------------
tools/pdbgen/pdb/convert.pdb | 2 +-
tools/pdbgen/pdb/drawable_transform.pdb | 10 +++++-----
tools/pdbgen/pdb/floating_sel.pdb | 4 ++--
tools/pdbgen/pdb/text_tool.pdb | 16 ++++++++--------
8 files changed, 16 insertions(+), 51 deletions(-)
---
diff --git a/app/pdb/convert-cmds.c b/app/pdb/convert-cmds.c
index bb67d4f..612cc04 100644
--- a/app/pdb/convert-cmds.c
+++ b/app/pdb/convert-cmds.c
@@ -187,12 +187,10 @@ image_convert_set_dither_matrix_invoker (GimpProcedure *procedure,
gboolean success = TRUE;
gint32 width;
gint32 height;
- gint32 matrix_length;
const guint8 *matrix;
width = g_value_get_int (&args->values[0]);
height = g_value_get_int (&args->values[1]);
- matrix_length = g_value_get_int (&args->values[2]);
matrix = gimp_value_get_int8array (&args->values[3]);
if (success)
diff --git a/app/pdb/drawable-transform-cmds.c b/app/pdb/drawable-transform-cmds.c
index ddc34f0..9491bab 100644
--- a/app/pdb/drawable-transform-cmds.c
+++ b/app/pdb/drawable-transform-cmds.c
@@ -120,7 +120,6 @@ drawable_transform_flip_invoker (GimpProcedure *procedure,
gdouble y1;
gint32 transform_direction;
gint32 interpolation;
- gboolean supersample;
gint32 recursion_level;
gboolean clip_result;
@@ -131,7 +130,6 @@ drawable_transform_flip_invoker (GimpProcedure *procedure,
y1 = g_value_get_double (&args->values[4]);
transform_direction = g_value_get_enum (&args->values[5]);
interpolation = g_value_get_enum (&args->values[6]);
- supersample = g_value_get_boolean (&args->values[7]);
recursion_level = g_value_get_int (&args->values[8]);
clip_result = g_value_get_boolean (&args->values[9]);
@@ -302,7 +300,6 @@ drawable_transform_perspective_invoker (GimpProcedure *procedure,
gdouble y3;
gint32 transform_direction;
gint32 interpolation;
- gboolean supersample;
gint32 recursion_level;
gint32 clip_result;
@@ -317,7 +314,6 @@ drawable_transform_perspective_invoker (GimpProcedure *procedure,
y3 = g_value_get_double (&args->values[8]);
transform_direction = g_value_get_enum (&args->values[9]);
interpolation = g_value_get_enum (&args->values[10]);
- supersample = g_value_get_boolean (&args->values[11]);
recursion_level = g_value_get_int (&args->values[12]);
clip_result = g_value_get_enum (&args->values[13]);
@@ -563,7 +559,6 @@ drawable_transform_rotate_invoker (GimpProcedure *procedure,
gint32 center_y;
gint32 transform_direction;
gint32 interpolation;
- gboolean supersample;
gint32 recursion_level;
gint32 clip_result;
@@ -574,7 +569,6 @@ drawable_transform_rotate_invoker (GimpProcedure *procedure,
center_y = g_value_get_int (&args->values[4]);
transform_direction = g_value_get_enum (&args->values[5]);
interpolation = g_value_get_enum (&args->values[6]);
- supersample = g_value_get_boolean (&args->values[7]);
recursion_level = g_value_get_int (&args->values[8]);
clip_result = g_value_get_enum (&args->values[9]);
@@ -749,7 +743,6 @@ drawable_transform_scale_invoker (GimpProcedure *procedure,
gdouble y1;
gint32 transform_direction;
gint32 interpolation;
- gboolean supersample;
gint32 recursion_level;
gint32 clip_result;
@@ -760,7 +753,6 @@ drawable_transform_scale_invoker (GimpProcedure *procedure,
y1 = g_value_get_double (&args->values[4]);
transform_direction = g_value_get_enum (&args->values[5]);
interpolation = g_value_get_enum (&args->values[6]);
- supersample = g_value_get_boolean (&args->values[7]);
recursion_level = g_value_get_int (&args->values[8]);
clip_result = g_value_get_enum (&args->values[9]);
@@ -1300,7 +1292,6 @@ drawable_transform_matrix_invoker (GimpProcedure *procedure,
gdouble coeff_2_2;
gint32 transform_direction;
gint32 interpolation;
- gboolean supersample;
gint32 recursion_level;
gint32 clip_result;
@@ -1316,7 +1307,6 @@ drawable_transform_matrix_invoker (GimpProcedure *procedure,
coeff_2_2 = g_value_get_double (&args->values[9]);
transform_direction = g_value_get_enum (&args->values[10]);
interpolation = g_value_get_enum (&args->values[11]);
- supersample = g_value_get_boolean (&args->values[12]);
recursion_level = g_value_get_int (&args->values[13]);
clip_result = g_value_get_enum (&args->values[14]);
diff --git a/app/pdb/floating-sel-cmds.c b/app/pdb/floating-sel-cmds.c
index 2e4caae..9887742 100644
--- a/app/pdb/floating-sel-cmds.c
+++ b/app/pdb/floating-sel-cmds.c
@@ -172,16 +172,9 @@ floating_sel_rigor_invoker (GimpProcedure *procedure,
GError **error)
{
gboolean success = TRUE;
- GimpLayer *floating_sel;
- gboolean undo;
-
- floating_sel = gimp_value_get_layer (&args->values[0], gimp);
- undo = g_value_get_boolean (&args->values[1]);
-
if (success)
{
}
-
return gimp_procedure_get_return_values (procedure, success,
error ? *error : NULL);
}
diff --git a/app/pdb/text-tool-cmds.c b/app/pdb/text-tool-cmds.c
index 20e84cb..81d85b3 100644
--- a/app/pdb/text-tool-cmds.c
+++ b/app/pdb/text-tool-cmds.c
@@ -110,7 +110,6 @@ text_get_extents_fontname_invoker (GimpProcedure *procedure,
GValueArray *return_vals;
const gchar *text;
gdouble size;
- gint32 size_type;
const gchar *fontname;
gint32 width = 0;
gint32 height = 0;
@@ -119,7 +118,6 @@ text_get_extents_fontname_invoker (GimpProcedure *procedure,
text = g_value_get_string (&args->values[0]);
size = g_value_get_double (&args->values[1]);
- size_type = g_value_get_enum (&args->values[2]);
fontname = g_value_get_string (&args->values[3]);
if (success)
@@ -165,13 +163,7 @@ text_invoker (GimpProcedure *procedure,
gint32 border;
gboolean antialias;
gdouble size;
- gint32 size_type;
- const gchar *foundry;
const gchar *family;
- const gchar *weight;
- const gchar *slant;
- const gchar *set_width;
- const gchar *spacing;
const gchar *registry;
const gchar *encoding;
GimpLayer *text_layer = NULL;
@@ -184,13 +176,7 @@ text_invoker (GimpProcedure *procedure,
border = g_value_get_int (&args->values[5]);
antialias = g_value_get_boolean (&args->values[6]);
size = g_value_get_double (&args->values[7]);
- size_type = g_value_get_enum (&args->values[8]);
- foundry = g_value_get_string (&args->values[9]);
family = g_value_get_string (&args->values[10]);
- weight = g_value_get_string (&args->values[11]);
- slant = g_value_get_string (&args->values[12]);
- set_width = g_value_get_string (&args->values[13]);
- spacing = g_value_get_string (&args->values[14]);
registry = g_value_get_string (&args->values[15]);
encoding = g_value_get_string (&args->values[16]);
@@ -239,7 +225,6 @@ text_get_extents_invoker (GimpProcedure *procedure,
const gchar *family;
const gchar *slant;
const gchar *set_width;
- const gchar *spacing;
const gchar *registry;
const gchar *encoding;
gint32 width = 0;
@@ -254,7 +239,6 @@ text_get_extents_invoker (GimpProcedure *procedure,
family = g_value_get_string (&args->values[4]);
slant = g_value_get_string (&args->values[6]);
set_width = g_value_get_string (&args->values[7]);
- spacing = g_value_get_string (&args->values[8]);
registry = g_value_get_string (&args->values[9]);
encoding = g_value_get_string (&args->values[10]);
diff --git a/tools/pdbgen/pdb/convert.pdb b/tools/pdbgen/pdb/convert.pdb
index 386d60a..016842b 100644
--- a/tools/pdbgen/pdb/convert.pdb
+++ b/tools/pdbgen/pdb/convert.pdb
@@ -193,7 +193,7 @@ HELP
desc => 'Height of the matrix (0 to reset to default matrix)' },
{ name => 'matrix', type => 'int8array',
desc => 'The matrix -- all values must be >= 1',
- array => { name => 'matrix_length', type => '1 <= int32 <= 1024',
+ array => { name => 'matrix_length', type => '1 <= int32 <= 1024', dead => 1,
desc => "The length of 'matrix'" }
},
);
diff --git a/tools/pdbgen/pdb/drawable_transform.pdb b/tools/pdbgen/pdb/drawable_transform.pdb
index c2879c8..9ef95c1 100644
--- a/tools/pdbgen/pdb/drawable_transform.pdb
+++ b/tools/pdbgen/pdb/drawable_transform.pdb
@@ -223,7 +223,7 @@ sub drawable_transform_flip {
desc => 'Direction of transformation' },
{ name => 'interpolation', type => 'enum GimpInterpolationType',
desc => 'Type of interpolation' },
- { name => 'supersample', type => 'boolean',
+ { name => 'supersample', type => 'boolean', dead => 1,
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
@@ -313,7 +313,7 @@ sub drawable_transform_perspective {
desc => 'Direction of transformation' },
{ name => 'interpolation', type => 'enum GimpInterpolationType',
desc => 'Type of interpolation' },
- { name => 'supersample', type => 'boolean',
+ { name => 'supersample', type => 'boolean', dead => 1,
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
@@ -469,7 +469,7 @@ sub drawable_transform_rotate {
desc => 'Direction of transformation' },
{ name => 'interpolation', type => 'enum GimpInterpolationType',
desc => 'Type of interpolation' },
- { name => 'supersample', type => 'boolean',
+ { name => 'supersample', type => 'boolean', dead => 1,
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
@@ -555,7 +555,7 @@ sub drawable_transform_scale {
desc => 'Direction of transformation' },
{ name => 'interpolation', type => 'enum GimpInterpolationType',
desc => 'Type of interpolation' },
- { name => 'supersample', type => 'boolean',
+ { name => 'supersample', type => 'boolean', dead => 1,
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
@@ -805,7 +805,7 @@ sub drawable_transform_matrix {
desc => 'Direction of transformation' },
{ name => 'interpolation', type => 'enum GimpInterpolationType',
desc => 'Type of interpolation' },
- { name => 'supersample', type => 'boolean',
+ { name => 'supersample', type => 'boolean', dead => 1,
desc => 'This parameter is ignored, supersampling is performed based on the interpolation type' },
{ name => 'recursion_level', type => '1 <= int32',
desc => 'Maximum recursion level used for supersampling (3 is a nice value)' },
diff --git a/tools/pdbgen/pdb/floating_sel.pdb b/tools/pdbgen/pdb/floating_sel.pdb
index 30af403..e9dd4a8 100644
--- a/tools/pdbgen/pdb/floating_sel.pdb
+++ b/tools/pdbgen/pdb/floating_sel.pdb
@@ -164,9 +164,9 @@ sub floating_sel_rigor {
&std_pdb_deprecated ();
@inargs = (
- { name => 'floating_sel', type => 'layer',
+ { name => 'floating_sel', type => 'layer', dead => 1,
desc => 'The floating selection' },
- { name => 'undo', type => 'boolean' }
+ { name => 'undo', type => 'boolean', dead => 1 }
);
%invoke = (
diff --git a/tools/pdbgen/pdb/text_tool.pdb b/tools/pdbgen/pdb/text_tool.pdb
index abf682f..94eea42 100644
--- a/tools/pdbgen/pdb/text_tool.pdb
+++ b/tools/pdbgen/pdb/text_tool.pdb
@@ -113,7 +113,7 @@ HELP
desc => 'The text to generate (in UTF-8 encoding)' },
{ name => 'size', type => '0 < float',
desc => 'The size of text in either pixels or points' },
- { name => 'size_type', type => 'enum GimpSizeType',
+ { name => 'size_type', type => 'enum GimpSizeType', dead => 1,
desc => 'The units of specified size' },
{ name => 'fontname', type => 'string',
desc => 'The name of the font' }
@@ -166,19 +166,19 @@ sub text {
desc => 'Antialiasing' },
{ name => 'size', type => '0 < float',
desc => 'The size of text in either pixels or points' },
- { name => 'size_type', type => 'enum GimpSizeType',
+ { name => 'size_type', type => 'enum GimpSizeType', dead => 1,
desc => 'The units of specified size' },
- { name => 'foundry', type => 'string', allow_non_utf8 => 1,
+ { name => 'foundry', type => 'string', allow_non_utf8 => 1, dead => 1,
desc => 'The font foundry' },
{ name => 'family', type => 'string', allow_non_utf8 => 1,
desc => 'The font family' },
- { name => 'weight', type => 'string', allow_non_utf8 => 1,
+ { name => 'weight', type => 'string', allow_non_utf8 => 1, dead => 1,
desc => 'The font weight' },
- { name => 'slant', type => 'string', allow_non_utf8 => 1,
+ { name => 'slant', type => 'string', allow_non_utf8 => 1, dead => 1,
desc => 'The font slant' },
- { name => 'set_width', type => 'string', allow_non_utf8 => 1,
+ { name => 'set_width', type => 'string', allow_non_utf8 => 1, dead => 1,
desc => 'The font set-width' },
- { name => 'spacing', type => 'string', allow_non_utf8 => 1,
+ { name => 'spacing', type => 'string', allow_non_utf8 => 1, dead => 1,
desc => 'The font spacing' },
{ name => 'registry', type => 'string', allow_non_utf8 => 1,
desc => 'The font registry' },
@@ -234,7 +234,7 @@ sub text_get_extents {
desc => 'The font slant' },
{ name => 'set_width', type => 'string', allow_non_utf8 => 1,
desc => 'The font set-width' },
- { name => 'spacing', type => 'string', allow_non_utf8 => 1,
+ { name => 'spacing', type => 'string', allow_non_utf8 => 1, dead => 1,
desc => 'The font spacing' },
{ name => 'registry', type => 'string', allow_non_utf8 => 1,
desc => 'The font registry' },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]