fix eclipse warnings
[fanfix.git] / src / jexer / menu / TMenu.java
index ee1af554092ad442adb6b87c8318f15cc9ab1af8..56cbad5be6661425575ea9039f2392f785b03405 100644 (file)
@@ -126,15 +126,8 @@ public final class TMenu extends TWindow {
      */
     @Override
     public void draw() {
-        CellAttributes menuColor;
         CellAttributes background = getTheme().getColor("tmenu");
 
-        if (getAbsoluteActive()) {
-            menuColor = getTheme().getColor("tmenu.highlighted");
-        } else {
-            menuColor = getTheme().getColor("tmenu");
-        }
-
         assert (getAbsoluteActive());
 
         // Fill in the interior background
@@ -490,7 +483,9 @@ public final class TMenu extends TWindow {
         int newY = getChildren().size() + 1;
         assert (newY < getHeight());
 
-        TMenuItem menuItem = new TMenuSeparator(this, 1, newY);
+        // We just have to construct it, don't need to hang onto what it
+        // makes.
+        new TMenuSeparator(this, 1, newY);
         setHeight(getHeight() + 1);
     }