From 1b51800541ba627d121f1b946c21cca5758b4e39 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 9 Aug 2007 08:43:40 +0000 Subject: [PATCH] Delete sensors_do_all_sets(). I couldn't find any application using it, and sensors_do_chip_sets() can be used instead if really needed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4648 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + lib/access.c | 12 ------------ lib/libsensors.3 | 5 ----- lib/sensors.h | 4 ---- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/CHANGES b/CHANGES index 3d9cdc3c..93ce2409 100644 --- a/CHANGES +++ b/CHANGES @@ -18,6 +18,7 @@ SVN HEAD Fix a memory leak on error Speed up sensors_get_ignored() a bit No longer export sensors_chip_name_has_wildcards() + Delete sensors_do_all_sets(), unused Makefile: Drop the package and version targets Man page sensors.conf.5: Update the chip statement section Programs doc/*: Delete, obsolete diff --git a/lib/access.c b/lib/access.c index 0c3c0cdb..99c323f4 100644 --- a/lib/access.c +++ b/lib/access.c @@ -483,18 +483,6 @@ int sensors_do_chip_sets(sensors_chip_name name) return res; } -/* Execute all set statements for all detected chips. This is the same as - calling sensors_do_chip_sets with an all wildcards chip name */ -int sensors_do_all_sets(void) -{ - static const sensors_chip_name name = { - .prefix = SENSORS_CHIP_NAME_PREFIX_ANY, - .bus = SENSORS_CHIP_NAME_BUS_ANY, - .addr = SENSORS_CHIP_NAME_ADDR_ANY, - }; - return sensors_do_chip_sets(name); -} - /* Static mappings for use by sensors_feature_get_type() */ struct feature_subtype_match { diff --git a/lib/libsensors.3 b/lib/libsensors.3 index 26a12545..13b14d8c 100644 --- a/lib/libsensors.3 +++ b/lib/libsensors.3 @@ -45,7 +45,6 @@ libsensors \- publicly accessible functions provided by the sensors library .B int sensors_set_feature(sensors_chip_name name, int feature, \fBdouble value);\fP .B int sensors_do_chip_sets(sensors_chip_name name); -.B extern int sensors_do_all_sets(void); .B const sensors_chip_name *sensors_get_detected_chips(int *nr); .B const sensors_feature_data *sensors_get_all_features \fB(sensors_chip_name name, int *nr);\fP @@ -95,10 +94,6 @@ Set the value of a feature of a certain chip. Note that chip should not contain .br Execute all set statements for this particular chip. The chip may contain wildcards! This function will return 0 on success, and <0 on failure. -.B int sensors_do_all_sets(void); -.br -Execute all set statements for all detected chips. This is the same as calling sensors_do_chip_sets with an all wildcards chip name - \fBconst sensors_chip_name *sensors_get_detected_chips (int *nr);\fP .br diff --git a/lib/sensors.h b/lib/sensors.h index 10b893c2..53b2d5af 100644 --- a/lib/sensors.h +++ b/lib/sensors.h @@ -94,10 +94,6 @@ extern int sensors_set_feature(sensors_chip_name name, int feature, wildcards! This function will return 0 on success, and <0 on failure. */ extern int sensors_do_chip_sets(sensors_chip_name name); -/* Execute all set statements for all detected chips. This is the same as - calling sensors_do_chip_sets with an all wildcards chip name */ -extern int sensors_do_all_sets(void); - /* This function returns all detected chips, one by one. To start at the beginning of the list, use 0 for nr; NULL is returned if we are at the end of the list. Do not try to change these chip names, as