Browse Source

[settings] Remove now-unused store_named_setting()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
8ea5822afd
2 changed files with 0 additions and 48 deletions
  1. 0
    35
      src/core/settings.c
  2. 0
    13
      src/include/ipxe/settings.h

+ 0
- 35
src/core/settings.c View File

@@ -1316,41 +1316,6 @@ int setting_name ( struct settings *settings, struct setting *setting,
1316 1316
 			  setting->name, setting->type->name );
1317 1317
 }
1318 1318
 
1319
-/**
1320
- * Store value of named setting
1321
- *
1322
- * @v name		Name of setting
1323
- * @v default_type	Default type to use, if none specified
1324
- * @v data		Setting data, or NULL to clear setting
1325
- * @v len		Length of setting data
1326
- * @ret rc		Return status code
1327
- */
1328
-int store_named_setting ( const char *name, struct setting_type *default_type,
1329
-			  const void *data, size_t len ) {
1330
-	struct settings *settings;
1331
-	struct setting setting;
1332
-	char tmp_name[ strlen ( name ) + 1 ];
1333
-	int rc;
1334
-
1335
-	/* Create modifiable copy of setting name */
1336
-	strcpy ( tmp_name, name );
1337
-
1338
-	/* Parse setting name */
1339
-	if ( ( rc = parse_setting_name ( tmp_name, autovivify_child_settings,
1340
-					 &settings, &setting ) ) != 0 )
1341
-		return rc;
1342
-
1343
-	/* Apply default type if necessary */
1344
-	if ( ! setting.type )
1345
-		setting.type = default_type;
1346
-
1347
-	/* Store setting */
1348
-	if ( ( rc = store_setting ( settings, &setting, data, len ) ) != 0 )
1349
-		return rc;
1350
-
1351
-	return 0;
1352
-}
1353
-
1354 1319
 /**
1355 1320
  * Parse and store value of named setting
1356 1321
  *

+ 0
- 13
src/include/ipxe/settings.h View File

@@ -315,9 +315,6 @@ extern int fetchf_setting_copy ( struct settings *settings,
315 315
 extern int storef_setting ( struct settings *settings,
316 316
 			    struct setting *setting,
317 317
 			    const char *value );
318
-extern int store_named_setting ( const char *name,
319
-				 struct setting_type *default_type,
320
-				 const void *data, size_t len );
321 318
 extern int storef_named_setting ( const char *name,
322 319
 				  struct setting_type *default_type,
323 320
 				  const char *value );
@@ -402,16 +399,6 @@ static inline int delete_setting ( struct settings *settings,
402 399
 	return store_setting ( settings, setting, NULL, 0 );
403 400
 }
404 401
 
405
-/**
406
- * Delete named setting
407
- *
408
- * @v name		Name of setting
409
- * @ret rc		Return status code
410
- */
411
-static inline int delete_named_setting ( const char *name ) {
412
-	return store_named_setting ( name, NULL, NULL, 0 );
413
-}
414
-
415 402
 /**
416 403
  * Check existence of setting
417 404
  *

Loading…
Cancel
Save