[gimp] Revert "pdb: Mark unused args as dead"



commit 0ced7458cc6ee4bc628ac06fa10d345a2335d3f3
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jun 10 11:24:15 2013 +0200

    Revert "pdb: Mark unused args as dead"
    
    This reverts commit d2cac94a498f8b36e94668f1e70e8afce6ad89d8
    and commit 7241a35b937d20251fe480203abd13cdab3a0f22.
    
    gimp-drawable-foreground-extract will be revived before 2.10, the
    warnings are a nice reminder :)

 app/pdb/drawable-cmds.c       |    9 +++++++++
 tools/pdbgen/pdb/drawable.pdb |    6 +++---
 2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/app/pdb/drawable-cmds.c b/app/pdb/drawable-cmds.c
index 8927bc9..6532113 100644
--- a/app/pdb/drawable-cmds.c
+++ b/app/pdb/drawable-cmds.c
@@ -926,6 +926,14 @@ drawable_foreground_extract_invoker (GimpProcedure         *procedure,
                                      GError               **error)
 {
   gboolean success = TRUE;
+  GimpDrawable *drawable;
+  gint32 mode;
+  GimpDrawable *mask;
+
+  drawable = gimp_value_get_drawable (gimp_value_array_index (args, 0), gimp);
+  mode = g_value_get_enum (gimp_value_array_index (args, 1));
+  mask = gimp_value_get_drawable (gimp_value_array_index (args, 2), gimp);
+
   if (success)
     {
     /*
@@ -936,6 +944,7 @@ drawable_foreground_extract_invoker (GimpProcedure         *procedure,
     */
       success = FALSE;
     }
+
   return gimp_procedure_get_return_values (procedure, success,
                                            error ? *error : NULL);
 }
diff --git a/tools/pdbgen/pdb/drawable.pdb b/tools/pdbgen/pdb/drawable.pdb
index b402654..774f803 100644
--- a/tools/pdbgen/pdb/drawable.pdb
+++ b/tools/pdbgen/pdb/drawable.pdb
@@ -939,11 +939,11 @@ HELP
     $since     = '2.4';
 
     @inargs = (
-       { name => 'drawable', type => 'drawable', dead => 1,
+       { name => 'drawable', type => 'drawable',
          desc => 'The drawable' },
-        { name => 'mode', type => 'enum GimpForegroundExtractMode', dead => 1,
+        { name => 'mode', type => 'enum GimpForegroundExtractMode',
          desc => 'The algorithm to use' },
-        { name => 'mask', type => 'drawable', dead => 1, desc => 'Tri-Map' }
+        { name => 'mask', type => 'drawable', desc => 'Tri-Map' }
     );
 
     %invoke = (


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]