From 01c77d204daf2dd5891342a241ec94eb8d7f90ff Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 14 Dec 2004 02:34:53 +0000 Subject: [PATCH] Allow the removal of a configuration value. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1545 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../samskivert/src/java/com/samskivert/util/Config.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/projects/samskivert/src/java/com/samskivert/util/Config.java b/projects/samskivert/src/java/com/samskivert/util/Config.java index 12f7e713..191f22d7 100644 --- a/projects/samskivert/src/java/com/samskivert/util/Config.java +++ b/projects/samskivert/src/java/com/samskivert/util/Config.java @@ -571,6 +571,14 @@ public class Config _propsup.firePropertyChange(name, oldValue, value); } + /** + * Remove any set value for the specified preference. + */ + public void remove (String name) + { + _prefs.remove(name); + } + /** * Adds a listener that will be notified whenever any configuration * properties are changed by a call to one of the set