3636
3737package edu .rice .cs .drjava .config ;
3838
39- import edu .rice .cs .util .swing .Utilities ;
40-
4139import java .util .ResourceBundle ;
4240import java .util .MissingResourceException ;
4341import java .io .*;
@@ -81,7 +79,7 @@ public <T> T getOption(OptionParser<T> o) {
8179 public <T > T setOption (Option <T > o , T val ) {
8280 if (o == null ) return _shadowed .getOptionMap ().setOption (o , val );
8381 try {
84- String str = _bundle .getString (o .getName ());
82+ _bundle .getString (o .getName ());
8583 return null ; // defined in resource bundle, can't be set
8684 }
8785 catch (MissingResourceException mre ) {
@@ -105,7 +103,7 @@ public <T> String getString(OptionParser<T> o) {
105103 public <T > void setString (OptionParser <T > o , String s ) {
106104 if (o ==null ) _shadowed .getOptionMap ().setString (o , s );
107105 try {
108- String str = _bundle .getString (o .getName ());
106+ _bundle .getString (o .getName ());
109107 return ; // defined in resource bundle, can't be set
110108 }
111109 catch (MissingResourceException mre ) {
@@ -117,7 +115,7 @@ public <T> void setString(OptionParser<T> o, String s) {
117115 public <T > T removeOption (OptionParser <T > o ) {
118116 if (o ==null ) return _shadowed .getOptionMap ().removeOption (o );
119117 try {
120- String str = _bundle .getString (o .getName ());
118+ _bundle .getString (o .getName ());
121119 return null ; // defined in resource bundle, can't be removed
122120 }
123121 catch (MissingResourceException mre ) {
@@ -147,7 +145,7 @@ public Iterable<OptionParser<?>> keys() {
147145 public <T > T setSetting (final Option <T > op , final T value ) {
148146 if (op ==null ) return _shadowed .setSetting (op , value );
149147 try {
150- String str = _bundle .getString (op .getName ());
148+ _bundle .getString (op .getName ());
151149 return null ; // defined in resource bundle, can't be set
152150 }
153151 catch (MissingResourceException mre ) {
@@ -173,7 +171,7 @@ public <T> T getSetting(Option<T> op) {
173171 public <T > boolean isEditable (Option <T > op ) {
174172 if (op ==null ) return _shadowed .isEditable (op );
175173 try {
176- String str = _bundle .getString (op .getName ());
174+ _bundle .getString (op .getName ());
177175 return false ; // defined, not editable
178176 }
179177 catch (MissingResourceException mre ) {
0 commit comments