[gimp/wip/Jehan/layers-dockable-refresh: 101/105] app, devel-docs, libgimp, pdb: delete gimpitem-linked.[ch].




commit d128c5db9a7c03727eec8865697d64627f228bd5
Author: Jehan <jehan girinstud io>
Date:   Wed Dec 15 23:55:08 2021 +0100

    app, devel-docs, libgimp, pdb: delete gimpitem-linked.[ch].
    
    Getting rid of the last usage from these files dedicated to outdated
    item link concept.

 app/actions/drawable-commands.c |   1 -
 app/core/Makefile.am            |   2 -
 app/core/gimpitem-linked.c      | 103 ----------------------------------------
 app/core/gimpitem-linked.h      |  33 -------------
 app/core/gimpitem.c             |   5 --
 app/core/meson.build            |   1 -
 app/gimpcore.def                |   1 -
 app/pdb/item-transform-cmds.c   |  75 +++++------------------------
 app/pdb/layer-cmds.c            |   1 -
 app/tools/gimptransformtool.c   |   1 -
 devel-docs/app/app-sections.txt |   6 ---
 libgimp/gimpitemtransform_pdb.c |  32 +++----------
 pdb/groups/item_transform.pdb   |  45 +++++-------------
 pdb/groups/layer.pdb            |   1 -
 14 files changed, 31 insertions(+), 276 deletions(-)
---
diff --git a/app/actions/drawable-commands.c b/app/actions/drawable-commands.c
index c5648993bc..17c2b84175 100644
--- a/app/actions/drawable-commands.c
+++ b/app/actions/drawable-commands.c
@@ -30,7 +30,6 @@
 #include "core/gimpdrawable-operation.h"
 #include "core/gimpimage.h"
 #include "core/gimpimage-undo.h"
-#include "core/gimpitem-linked.h"
 #include "core/gimpitemundo.h"
 #include "core/gimplayermask.h"
 #include "core/gimpprogress.h"
diff --git a/app/core/Makefile.am b/app/core/Makefile.am
index f20a68fbed..86fbb4f920 100644
--- a/app/core/Makefile.am
+++ b/app/core/Makefile.am
@@ -347,8 +347,6 @@ libappcore_a_sources = \
        gimpitem.h                              \
        gimpitem-exclusive.c                    \
        gimpitem-exclusive.h                    \
-       gimpitem-linked.c                       \
-       gimpitem-linked.h                       \
        gimpitem-preview.c                      \
        gimpitem-preview.h                      \
        gimpitemlist.c                          \
diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c
index d8f221c7dc..0731f9f818 100644
--- a/app/core/gimpitem.c
+++ b/app/core/gimpitem.c
@@ -37,7 +37,6 @@
 #include "gimpimage-undo.h"
 #include "gimpimage-undo-push.h"
 #include "gimpitem.h"
-#include "gimpitem-linked.h"
 #include "gimpitem-preview.h"
 #include "gimpitemtree.h"
 #include "gimplist.h"
@@ -504,10 +503,6 @@ gimp_item_real_is_content_locked (GimpItem *item)
 static gboolean
 gimp_item_real_is_position_locked (GimpItem *item)
 {
-  if (gimp_item_get_linked (item))
-    if (gimp_item_linked_is_locked (item))
-      return TRUE;
-
   return GET_PRIVATE (item)->lock_position;
 }
 
diff --git a/app/core/meson.build b/app/core/meson.build
index 26f951e7d8..a23a48084d 100644
--- a/app/core/meson.build
+++ b/app/core/meson.build
@@ -173,7 +173,6 @@ libappcore_sources = [
   'gimpimageproxy.c',
   'gimpimageundo.c',
   'gimpitem-exclusive.c',
-  'gimpitem-linked.c',
   'gimpitem-preview.c',
   'gimpitem.c',
   'gimpitemlist.c',
diff --git a/app/gimpcore.def b/app/gimpcore.def
index c02f647210..12b40500aa 100644
--- a/app/gimpcore.def
+++ b/app/gimpcore.def
@@ -400,7 +400,6 @@ EXPORTS
        gimp_item_get_visible
        gimp_item_height
        gimp_item_is_text_layer
-       gimp_item_linked_transform
        gimp_item_offsets
        gimp_item_rename
        gimp_item_resize
diff --git a/app/pdb/item-transform-cmds.c b/app/pdb/item-transform-cmds.c
index 9fe548bf0e..f2209a66ec 100644
--- a/app/pdb/item-transform-cmds.c
+++ b/app/pdb/item-transform-cmds.c
@@ -34,7 +34,6 @@
 #include "core/gimpdrawable-transform.h"
 #include "core/gimpdrawable.h"
 #include "core/gimpimage.h"
-#include "core/gimpitem-linked.h"
 #include "core/gimpitem.h"
 #include "core/gimpparamspecs.h"
 #include "core/gimpprogress.h"
@@ -231,14 +230,6 @@ item_transform_flip_invoker (GimpProcedure         *procedure,
               else
                 success = FALSE;
             }
-          else if (gimp_item_get_linked (item))
-            {
-              gimp_item_linked_transform (item, context, &matrix,
-                                          pdb_context->transform_direction,
-                                          pdb_context->interpolation,
-                                          pdb_context->transform_resize,
-                                          progress);
-            }
           else
             {
               gimp_item_transform (item, context, &matrix,
@@ -343,14 +334,6 @@ item_transform_perspective_invoker (GimpProcedure         *procedure,
               else
                 success = FALSE;
             }
-          else if (gimp_item_get_linked (item))
-            {
-              gimp_item_linked_transform (item, context, &matrix,
-                                          pdb_context->transform_direction,
-                                          pdb_context->interpolation,
-                                          pdb_context->transform_resize,
-                                          progress);
-            }
           else
             {
               gimp_item_transform (item, context, &matrix,
@@ -532,14 +515,6 @@ item_transform_rotate_invoker (GimpProcedure         *procedure,
               else
                 success = FALSE;
             }
-          else if (gimp_item_get_linked (item))
-            {
-              gimp_item_linked_transform (item, context, &matrix,
-                                          pdb_context->transform_direction,
-                                          pdb_context->interpolation,
-                                          pdb_context->transform_resize,
-                                          progress);
-            }
           else
             {
               gimp_item_transform (item, context, &matrix,
@@ -636,14 +611,6 @@ item_transform_scale_invoker (GimpProcedure         *procedure,
               else
                 success = FALSE;
             }
-          else if (gimp_item_get_linked (item))
-            {
-              gimp_item_linked_transform (item, context, &matrix,
-                                          pdb_context->transform_direction,
-                                          pdb_context->interpolation,
-                                          pdb_context->transform_resize,
-                                          progress);
-            }
           else
             {
               gimp_item_transform (item, context, &matrix,
@@ -735,14 +702,6 @@ item_transform_shear_invoker (GimpProcedure         *procedure,
               else
                 success = FALSE;
             }
-          else if (gimp_item_get_linked (item))
-            {
-              gimp_item_linked_transform (item, context, &matrix,
-                                          pdb_context->transform_direction,
-                                          pdb_context->interpolation,
-                                          pdb_context->transform_resize,
-                                          progress);
-            }
           else
             {
               gimp_item_transform (item, context, &matrix,
@@ -845,14 +804,6 @@ item_transform_2d_invoker (GimpProcedure         *procedure,
               else
                 success = FALSE;
             }
-          else if (gimp_item_get_linked (item))
-            {
-              gimp_item_linked_transform (item, context, &matrix,
-                                          pdb_context->transform_direction,
-                                          pdb_context->interpolation,
-                                          pdb_context->transform_resize,
-                                          progress);
-            }
           else
             {
               gimp_item_transform (item, context, &matrix,
@@ -963,14 +914,6 @@ item_transform_matrix_invoker (GimpProcedure         *procedure,
               else
                 success = FALSE;
             }
-          else if (gimp_item_get_linked (item))
-            {
-              gimp_item_linked_transform (item, context, &matrix,
-                                          pdb_context->transform_direction,
-                                          pdb_context->interpolation,
-                                          pdb_context->transform_resize,
-                                          progress);
-            }
           else
             {
               gimp_item_transform (item, context, &matrix,
@@ -1170,7 +1113,8 @@ register_item_transform_procs (GimpPDB *pdb)
                                      "\n"
                                      "If a selection exists and the item is a drawable, the portion of the 
drawable which lies under the selection is cut from the drawable and made into a floating selection which is 
then transformed as specified. The return value is the ID of the transformed floating selection.\n"
                                      "\n"
-                                     "If there is no selection or the item is not a drawable, the entire 
item will be transformed according to the specified mapping. Additionally, if the item has its linked flag 
set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be 
transformed the same way. The return value will be equal to the item ID supplied as input.\n"
+                                     "If there is no selection or the item is not a drawable, the entire 
item will be transformed according to the specified mapping.\n"
+                                     "The return value will be equal to the item ID supplied as input.\n"
                                      "\n"
                                      "This procedure is affected by the following context setters: 
'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 
'gimp-context-set-transform-resize'.",
                                   NULL);
@@ -1314,7 +1258,8 @@ register_item_transform_procs (GimpPDB *pdb)
                                      "\n"
                                      "If a selection exists and the item is a drawable, the portion of the 
drawable which lies under the selection is cut from the drawable and made into a floating selection which is 
then rotated by the specified amount. If auto_center is set to TRUE, the rotation is around the selection's 
center. Otherwise, the coordinate of the center point needs to be specified. The return value is the ID of 
the rotated floating selection.\n"
                                      "\n"
-                                     "If there is no selection or the item is not a drawable, the entire 
item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center 
point needs to be specified. Additionally, if the item has its linked flag set to TRUE, all additional items 
contained in the image which have the linked flag set to TRUE will also be rotated around the same center 
point. The return value will be equal to the item ID supplied as input.\n"
+                                     "If there is no selection or the item is not a drawable, the entire 
item will be rotated around its center if auto_center is set to TRUE, otherwise the coordinate of the center 
point needs to be specified.\n"
+                                     "The return value will be equal to the item ID supplied as input.\n"
                                      "\n"
                                      "This procedure is affected by the following context setters: 
'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 
'gimp-context-set-transform-resize'.",
                                   NULL);
@@ -1375,7 +1320,8 @@ register_item_transform_procs (GimpPDB *pdb)
                                      "\n"
                                      "If a selection exists and the item is a drawable, the portion of the 
drawable which lies under the selection is cut from the drawable and made into a floating selection which is 
then scaled as specified. The return value is the ID of the scaled floating selection.\n"
                                      "\n"
-                                     "If there is no selection or the item is not a drawable, the entire 
item will be scaled according to the specified coordinates. Additionally, if the item has its linked flag set 
to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be 
scaled the same way. The return value will be equal to the item ID supplied as input.\n"
+                                     "If there is no selection or the item is not a drawable, the entire 
item will be scaled according to the specified coordinates.\n"
+                                     "The return value will be equal to the item ID supplied as input.\n"
                                      "\n"
                                      "This procedure is affected by the following context setters: 
'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 
'gimp-context-set-transform-resize'.",
                                   NULL);
@@ -1436,7 +1382,8 @@ register_item_transform_procs (GimpPDB *pdb)
                                      "\n"
                                      "If a selection exists and the item is a drawable, the portion of the 
drawable which lies under the selection is cut from the drawable and made into a floating selection which is 
then sheared as specified. The return value is the ID of the sheared floating selection.\n"
                                      "\n"
-                                     "If there is no selection or the item is not a drawable, the entire 
item will be sheared according to the specified parameters. Additionally, if the item has its linked flag set 
to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be 
sheared the same way. The return value will be equal to the item ID supplied as input.\n"
+                                     "If there is no selection or the item is not a drawable, the entire 
item will be sheared according to the specified parameters.\n"
+                                     "The return value will be equal to the item ID supplied as input.\n"
                                      "\n"
                                      "This procedure is affected by the following context setters: 
'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 
'gimp-context-set-transform-resize'.",
                                   NULL);
@@ -1488,7 +1435,8 @@ register_item_transform_procs (GimpPDB *pdb)
                                      "\n"
                                      "If a selection exists and the item is a drawable, the portion of the 
drawable which lies under the selection is cut from the drawable and made into a floating selection which is 
then transformed as specified. The return value is the ID of the transformed floating selection.\n"
                                      "\n"
-                                     "If there is no selection or the item is not a drawable, the entire 
item will be transformed according to the specified parameters. Additionally, if the item has its linked flag 
set to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be 
transformed the same way. The return value will be equal to the item ID supplied as input.\n"
+                                     "If there is no selection or the item is not a drawable, the entire 
item will be transformed according to the specified parameters.\n"
+                                     "The return value will be equal to the item ID supplied as input.\n"
                                      "\n"
                                      "This procedure is affected by the following context setters: 
'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 
'gimp-context-set-transform-resize'.",
                                   NULL);
@@ -1567,7 +1515,8 @@ register_item_transform_procs (GimpPDB *pdb)
                                      "\n"
                                      "If a selection exists and the item is a drawable, the portion of the 
drawable which lies under the selection is cut from the drawable and made into a floating selection which is 
then transformed as specified. The return value is the ID of the transformed floating selection.\n"
                                      "\n"
-                                     "If there is no selection or the item is not a drawable, the entire 
item will be transformed according to the specified matrix. Additionally, if the item has its linked flag set 
to TRUE, all additional items contained in the image which have the linked flag set to TRUE will also be 
transformed the same way. The return value will be equal to the item ID supplied as input.\n"
+                                     "If there is no selection or the item is not a drawable, the entire 
item will be transformed according to the specified matrix.\n"
+                                     "The return value will be equal to the item ID supplied as input.\n"
                                      "\n"
                                      "This procedure is affected by the following context setters: 
'gimp-context-set-interpolation', 'gimp-context-set-transform-direction', 
'gimp-context-set-transform-resize'.",
                                   NULL);
diff --git a/app/pdb/layer-cmds.c b/app/pdb/layer-cmds.c
index fff2a13ccb..3c7a13a010 100644
--- a/app/pdb/layer-cmds.c
+++ b/app/pdb/layer-cmds.c
@@ -38,7 +38,6 @@
 #include "core/gimpimage-color-profile.h"
 #include "core/gimpimage-undo.h"
 #include "core/gimpimage.h"
-#include "core/gimpitem-linked.h"
 #include "core/gimplayer-new.h"
 #include "core/gimplayer.h"
 #include "core/gimplayermask.h"
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 7b8a81b708..f4b15cb731 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -34,7 +34,6 @@
 #include "core/gimpimage-item-list.h"
 #include "core/gimpimage-transform.h"
 #include "core/gimpimage-undo.h"
-#include "core/gimpitem-linked.h"
 #include "core/gimplayer.h"
 #include "core/gimplayermask.h"
 #include "core/gimpprogress.h"
diff --git a/devel-docs/app/app-sections.txt b/devel-docs/app/app-sections.txt
index 57f8a1e522..ac552bc395 100644
--- a/devel-docs/app/app-sections.txt
+++ b/devel-docs/app/app-sections.txt
@@ -11419,12 +11419,6 @@ gimp_image_undo_push_cantundo
 gimp_item_toggle_exclusive_visible
 </SECTION>
 
-<SECTION>
-<FILE>gimpitem-linked</FILE>
-<TITLE>GimpItem-linked</TITLE>
-gimp_item_linked_transform
-</SECTION>
-
 <SECTION>
 <FILE>gimpitem-preview</FILE>
 <TITLE>GimpItem-preview</TITLE>
diff --git a/libgimp/gimpitemtransform_pdb.c b/libgimp/gimpitemtransform_pdb.c
index 3208f8b50a..3fd1fe5340 100644
--- a/libgimp/gimpitemtransform_pdb.c
+++ b/libgimp/gimpitemtransform_pdb.c
@@ -235,10 +235,7 @@ gimp_item_transform_flip (GimpItem *item,
  *
  * If there is no selection or the item is not a drawable, the entire
  * item will be transformed according to the specified mapping.
- * Additionally, if the item has its linked flag set to TRUE, all
- * additional items contained in the image which have the linked flag
- * set to TRUE will also be transformed the same way. The return value
- * will be equal to the item ID supplied as input.
+ * The return value will be equal to the item ID supplied as input.
  *
  * This procedure is affected by the following context setters:
  * gimp_context_set_interpolation(),
@@ -379,11 +376,8 @@ gimp_item_transform_rotate_simple (GimpItem         *item,
  * If there is no selection or the item is not a drawable, the entire
  * item will be rotated around its center if auto_center is set to
  * TRUE, otherwise the coordinate of the center point needs to be
- * specified. Additionally, if the item has its linked flag set to
- * TRUE, all additional items contained in the image which have the
- * linked flag set to TRUE will also be rotated around the same center
- * point. The return value will be equal to the item ID supplied as
- * input.
+ * specified.
+ * The return value will be equal to the item ID supplied as input.
  *
  * This procedure is affected by the following context setters:
  * gimp_context_set_interpolation(),
@@ -448,10 +442,7 @@ gimp_item_transform_rotate (GimpItem *item,
  *
  * If there is no selection or the item is not a drawable, the entire
  * item will be scaled according to the specified coordinates.
- * Additionally, if the item has its linked flag set to TRUE, all
- * additional items contained in the image which have the linked flag
- * set to TRUE will also be scaled the same way. The return value will
- * be equal to the item ID supplied as input.
+ * The return value will be equal to the item ID supplied as input.
  *
  * This procedure is affected by the following context setters:
  * gimp_context_set_interpolation(),
@@ -516,10 +507,7 @@ gimp_item_transform_scale (GimpItem *item,
  *
  * If there is no selection or the item is not a drawable, the entire
  * item will be sheared according to the specified parameters.
- * Additionally, if the item has its linked flag set to TRUE, all
- * additional items contained in the image which have the linked flag
- * set to TRUE will also be sheared the same way. The return value will
- * be equal to the item ID supplied as input.
+ * The return value will be equal to the item ID supplied as input.
  *
  * This procedure is affected by the following context setters:
  * gimp_context_set_interpolation(),
@@ -586,10 +574,7 @@ gimp_item_transform_shear (GimpItem            *item,
  *
  * If there is no selection or the item is not a drawable, the entire
  * item will be transformed according to the specified parameters.
- * Additionally, if the item has its linked flag set to TRUE, all
- * additional items contained in the image which have the linked flag
- * set to TRUE will also be transformed the same way. The return value
- * will be equal to the item ID supplied as input.
+ * The return value will be equal to the item ID supplied as input.
  *
  * This procedure is affected by the following context setters:
  * gimp_context_set_interpolation(),
@@ -666,10 +651,7 @@ gimp_item_transform_2d (GimpItem *item,
  *
  * If there is no selection or the item is not a drawable, the entire
  * item will be transformed according to the specified matrix.
- * Additionally, if the item has its linked flag set to TRUE, all
- * additional items contained in the image which have the linked flag
- * set to TRUE will also be transformed the same way. The return value
- * will be equal to the item ID supplied as input.
+ * The return value will be equal to the item ID supplied as input.
  *
  * This procedure is affected by the following context setters:
  * gimp_context_set_interpolation(),
diff --git a/pdb/groups/item_transform.pdb b/pdb/groups/item_transform.pdb
index 296fd9343f..de388c7d50 100644
--- a/pdb/groups/item_transform.pdb
+++ b/pdb/groups/item_transform.pdb
@@ -82,14 +82,6 @@ $assemble_matrix
           else
             success = FALSE;
         }
-      else if (gimp_item_get_linked (item))
-        {
-          gimp_item_linked_transform (item, context, &matrix,
-                                      pdb_context->transform_direction,
-                                      pdb_context->interpolation,
-                                      pdb_context->transform_resize,
-                                      progress);
-        }
       else
         {
           gimp_item_transform (item, context, &matrix,
@@ -329,10 +321,8 @@ The return value is the ID of the transformed floating selection.
 
 If there is no selection or the item is not a drawable, the entire
 item will be transformed according to the specified mapping.
-Additionally, if the item has its linked flag set to TRUE, all
-additional items contained in the image which have the linked flag set
-to TRUE will also be transformed the same way. The return value will be
-equal to the item ID supplied as input.
+
+The return value will be equal to the item ID supplied as input.
 
 
 This procedure is affected by the following context setters:
@@ -514,10 +504,8 @@ floating selection.
 If there is no selection or the item is not a drawable, the entire
 item will be rotated around its center if auto_center is set to TRUE,
 otherwise the coordinate of the center point needs to be specified.
-Additionally, if the item has its linked flag set to TRUE, all
-additional items contained in the image which have the linked flag set
-to TRUE will also be rotated around the same center point. The return
-value will be equal to the item ID supplied as input.
+
+The return value will be equal to the item ID supplied as input.
 
 
 This procedure is affected by the following context setters:
@@ -576,10 +564,8 @@ return value is the ID of the scaled floating selection.
 
 If there is no selection or the item is not a drawable, the entire
 item will be scaled according to the specified coordinates.
-Additionally, if the item has its linked flag set to TRUE, all
-additional items contained in the image which have the linked flag set
-to TRUE will also be scaled the same way. The return value will be
-equal to the item ID supplied as input.
+
+The return value will be equal to the item ID supplied as input.
 
 
 This procedure is affected by the following context setters:
@@ -642,10 +628,8 @@ The return value is the ID of the sheared floating selection.
 
 If there is no selection or the item is not a drawable, the entire
 item will be sheared according to the specified parameters.
-Additionally, if the item has its linked flag set to TRUE, all
-additional items contained in the image which have the linked flag set
-to TRUE will also be sheared the same way. The return value will be
-equal to the item ID supplied as input.
+
+The return value will be equal to the item ID supplied as input.
 
 
 This procedure is affected by the following context setters:
@@ -700,10 +684,8 @@ The return value is the ID of the transformed floating selection.
 
 If there is no selection or the item is not a drawable, the entire
 item will be transformed according to the specified parameters.
-Additionally, if the item has its linked flag set to TRUE, all
-additional items contained in the image which have the linked flag set
-to TRUE will also be transformed the same way. The return value will
-be equal to the item ID supplied as input.
+
+The return value will be equal to the item ID supplied as input.
 
 
 This procedure is affected by the following context setters:
@@ -766,10 +748,8 @@ The return value is the ID of the transformed floating selection.
 
 If there is no selection or the item is not a drawable, the entire
 item will be transformed according to the specified matrix.
-Additionally, if the item has its linked flag set to TRUE, all
-additional items contained in the image which have the linked flag set
-to TRUE will also be transformed the same way. The return value will
-be equal to the item ID supplied as input.
+
+The return value will be equal to the item ID supplied as input.
 
 
 This procedure is affected by the following context setters:
@@ -827,7 +807,6 @@ CODE
               "core/gimpdrawable.h"
               "core/gimpdrawable-transform.h"
               "core/gimpimage.h"
-              "core/gimpitem-linked.h"
               "core/gimpprogress.h"
               "gimppdb-utils.h"
               "gimppdbcontext.h"
diff --git a/pdb/groups/layer.pdb b/pdb/groups/layer.pdb
index 690a2af1d9..1e43bab142 100644
--- a/pdb/groups/layer.pdb
+++ b/pdb/groups/layer.pdb
@@ -1284,7 +1284,6 @@ CODE
               "core/gimp.h"
               "core/gimpimage-color-profile.h"
               "core/gimpimage-undo.h"
-              "core/gimpitem-linked.h"
               "core/gimpgrouplayer.h"
               "core/gimplayer-new.h"
               "core/gimppickable.h"


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