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

[virt-tools-list] [libosinfo 4/4] Remove obsolete methods from OsinfoDeviceDriverList



These methods were never part of a libosinfo release, so we can
remove them without breaking ABI.
---
 osinfo/libosinfo.syms             |  4 --
 osinfo/osinfo_device_driverlist.c | 77 ---------------------------------------
 osinfo/osinfo_device_driverlist.h |  7 ----
 3 files changed, 88 deletions(-)

diff --git a/osinfo/libosinfo.syms b/osinfo/libosinfo.syms
index 6848eb3..f7bcf7a 100644
--- a/osinfo/libosinfo.syms
+++ b/osinfo/libosinfo.syms
@@ -332,10 +332,6 @@ LIBOSINFO_0.2.2 {
 
 	osinfo_device_driverlist_get_type;
 	osinfo_device_driverlist_new;
-	osinfo_device_driverlist_new_copy;
-	osinfo_device_driverlist_new_filtered;
-	osinfo_device_driverlist_new_intersection;
-	osinfo_device_driverlist_new_union;
 
 	osinfo_install_config_param_policy_get_type;
 	osinfo_media_error_get_type;
diff --git a/osinfo/osinfo_device_driverlist.c b/osinfo/osinfo_device_driverlist.c
index fecc124..b4f6f0f 100644
--- a/osinfo/osinfo_device_driverlist.c
+++ b/osinfo/osinfo_device_driverlist.c
@@ -85,83 +85,6 @@ OsinfoDeviceDriverList *osinfo_device_driverlist_new(void)
                         NULL);
 }
 
-/**
- * osinfo_device_driverlist_new_copy:
- * @source: the device driver list to copy
- *
- * Construct a new device driver list that is filled with device drivers
- * from @source
- *
- * Returns: (transfer full): a copy of the device driver list
- */
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_copy(OsinfoDeviceDriverList *source)
-{
-    OsinfoDeviceDriverList *newList = osinfo_device_driverlist_new();
-    osinfo_list_add_all(OSINFO_LIST(newList),
-                        OSINFO_LIST(source));
-    return newList;
-}
-
-/**
- * osinfo_device_driverlist_new_filtered:
- * @source: the device driver list to copy
- * @filter: the filter to apply
- *
- * Construct a new device driver list that is filled with device drivers
- * from @source that match @filter
- *
- * Returns: (transfer full): a filtered copy of the device driver list
- */
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_filtered(OsinfoDeviceDriverList *source,
-                                                              OsinfoFilter *filter)
-{
-    OsinfoDeviceDriverList *newList = osinfo_device_driverlist_new();
-    osinfo_list_add_filtered(OSINFO_LIST(newList),
-                             OSINFO_LIST(source),
-                             filter);
-    return newList;
-}
-
-/**
- * osinfo_device_driverlist_new_intersection:
- * @sourceOne: the first device driver list to copy
- * @sourceTwo: the second device driver list to copy
- *
- * Construct a new device driver list that is filled with only the
- * device drivers that are present in both @sourceOne and @sourceTwo.
- *
- * Returns: (transfer full): an intersection of the two device driver lists
- */
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_intersection(OsinfoDeviceDriverList *sourceOne,
-                                                                  OsinfoDeviceDriverList *sourceTwo)
-{
-    OsinfoDeviceDriverList *newList = osinfo_device_driverlist_new();
-    osinfo_list_add_intersection(OSINFO_LIST(newList),
-                                 OSINFO_LIST(sourceOne),
-                                 OSINFO_LIST(sourceTwo));
-    return newList;
-}
-
-/**
- * osinfo_device_driverlist_new_union:
- * @sourceOne: the first device driver list to copy
- * @sourceTwo: the second device driver list to copy
- *
- * Construct a new device driver list that is filled with all the
- * device drivers that are present in either @sourceOne and @sourceTwo.
- *
- * Returns: (transfer full): a union of the two device driver lists
- */
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_union(OsinfoDeviceDriverList *sourceOne,
-                                                           OsinfoDeviceDriverList *sourceTwo)
-{
-    OsinfoDeviceDriverList *newList = osinfo_device_driverlist_new();
-    osinfo_list_add_union(OSINFO_LIST(newList),
-                          OSINFO_LIST(sourceOne),
-                          OSINFO_LIST(sourceTwo));
-    return newList;
-}
-
 /*
  * Local variables:
  *  indent-tabs-mode: nil
diff --git a/osinfo/osinfo_device_driverlist.h b/osinfo/osinfo_device_driverlist.h
index 39724a8..4fd0b21 100644
--- a/osinfo/osinfo_device_driverlist.h
+++ b/osinfo/osinfo_device_driverlist.h
@@ -75,13 +75,6 @@ struct _OsinfoDeviceDriverListClass
 GType osinfo_device_driverlist_get_type(void);
 
 OsinfoDeviceDriverList *osinfo_device_driverlist_new(void);
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_copy(OsinfoDeviceDriverList *source);
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_filtered(OsinfoDeviceDriverList *source,
-                                                              OsinfoFilter *filter);
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_intersection(OsinfoDeviceDriverList *sourceOne,
-                                                                  OsinfoDeviceDriverList *sourceTwo);
-OsinfoDeviceDriverList *osinfo_device_driverlist_new_union(OsinfoDeviceDriverList *sourceOne,
-                                                           OsinfoDeviceDriverList *sourceTwo);
 
 #endif /* __OSINFO_DEVICE_DRIVERLIST_H__ */
 /*
-- 
1.8.0.1


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