Skip to content

Commit 6d717b4

Browse files
committed
Q831-010 Remove ineffective use clauses.
Change-Id: I07f98ddef124c4ba00ca670d1173e7f7db304683
1 parent e70f828 commit 6d717b4

File tree

7 files changed

+4
-11
lines changed

7 files changed

+4
-11
lines changed

src/glib-type_conversion_hooks.adb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ package body Glib.Type_Conversion_Hooks is
7979
function Get_Type (Obj : System.Address) return GType;
8080
pragma Import (C, Get_Type, "ada_gobject_get_type");
8181

82-
The_Type : GType := Get_Type (Obj);
83-
Hooks : Glib.Type_Conversion_Hooks.Hook_List_Access;
84-
85-
use type Glib.Type_Conversion_Hooks.Hook_List_Access;
82+
The_Type : GType := Get_Type (Obj);
83+
Hooks : Glib.Type_Conversion_Hooks.Hook_List_Access;
8684

8785
begin
8886
while The_Type > GType_Object loop

src/glib.ads

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ package Glib is
3939
pragma Preelaborate;
4040

4141
package C renames Interfaces.C;
42-
use type C.int;
43-
use type C.unsigned;
4442

4543
-------------------------------------
4644
-- The basic types defined by glib --

src/gtkada-canvas_view.adb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3198,7 +3198,6 @@ package body Gtkada.Canvas_View is
31983198
(Self : not null access Container_Item_Record;
31993199
In_Model : not null access Canvas_Model_Record'Class)
32003200
is
3201-
use Item_Sets;
32023201
To_Remove : Item_Sets.Set;
32033202

32043203
procedure Do_Child (C : not null access Container_Item_Record'Class);

src/gtkada-dialogs.adb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ package body Gtkada.Dialogs is
218218
Img : Gtk_Image;
219219
Pixmap : Gdk_Pixbuf;
220220

221-
use Gdk;
222221
begin
223222
Gtk_New
224223
(Dialog,

src/gtkada-mdi.adb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,6 @@ package body Gtkada.MDI is
19561956
-------------------
19571957

19581958
procedure Destroy_Child (Child : access Gtk_Widget_Record'Class) is
1959-
use type Widget_SList.GSlist;
19601959
C : constant MDI_Child := MDI_Child (Child);
19611960
MDI : constant MDI_Window := C.MDI;
19621961
In_Selection_Dialog : Boolean := False;

src/gtkada-multi_paned.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ package body Gtkada.Multi_Paned is
720720
procedure Destroy_Paned
721721
(Paned : access Gtk_Widget_Record'Class)
722722
is
723-
use type Widget_List.Glist;
724723
Split : constant Gtkada_Multi_Paned := Gtkada_Multi_Paned (Paned);
724+
725725
begin
726726
-- Destruction of children would be done automatically by the default
727727
-- "destroy" handler of the ancestor of Gtkada_Multi_Paned (ie GtkFixed)

src/pango.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pragma Warnings (Off);
3030
with System; -- Needed for child packages
3131
pragma Warnings (On);
3232

33-
with Glib; use Glib;
33+
with Glib;
3434

3535
package Pango is
3636

0 commit comments

Comments
 (0)