[parted-devel] [PATCH 2/3] remove ped_(register|unregister)_disk_type since they were deprecated

Otavio Salvador otavio at ossystems.com.br
Sat Jan 31 19:17:46 UTC 2009


ped_(register|unregister)_disk_type were remove since they are
deprecated since 1.8 releases. The functions
ped_disk_type_(register|unregister) are the ones to be used.
---
 include/parted/disk.h |   12 ------------
 libparted/disk.c      |   18 ------------------
 2 files changed, 0 insertions(+), 30 deletions(-)

diff --git a/include/parted/disk.h b/include/parted/disk.h
index 1b0133d..dfcf39e 100644
--- a/include/parted/disk.h
+++ b/include/parted/disk.h
@@ -234,18 +234,6 @@ struct _PedDiskArchOps {
 extern void ped_disk_type_register (PedDiskType* type);
 extern void ped_disk_type_unregister (PedDiskType* type);
 
-/**
- * Deprecated: use ped_disk_type_register.
- */
-__attribute__ ((deprecated))
-extern void ped_register_disk_type (PedDiskType* type);
-
-/**
- * Deprecated: use ped_disk_type_unregister.
- */
-__attribute__ ((deprecated))
-extern void ped_unregister_disk_type (PedDiskType* type);
-
 extern PedDiskType* ped_disk_type_get_next (PedDiskType* type);
 extern PedDiskType* ped_disk_type_get (const char* name);
 extern int ped_disk_type_check_feature (const PedDiskType* disk_type,
diff --git a/libparted/disk.c b/libparted/disk.c
index b29ed41..93929b2 100644
--- a/libparted/disk.c
+++ b/libparted/disk.c
@@ -95,24 +95,6 @@ ped_disk_type_unregister (PedDiskType* disk_type)
 }
 
 /**
- * Deprecated: use ped_disk_type_regiser.
- */
-void
-ped_register_disk_type (PedDiskType* disk_type)
-{
-        ped_disk_type_register (disk_type);
-}
-
-/**
- * Deprecated: use ped_disk_type_unregiser.
- */
-void
-ped_unregister_disk_type (PedDiskType* disk_type)
-{
-        ped_disk_type_unregister (disk_type);
-}
-
-/**
  * Return the next disk type registers, after "type".  If "type" is
  * NULL, returns the first disk type.
  *
-- 
1.6.1.284.g5dc13




More information about the parted-devel mailing list