summaryrefslogtreecommitdiff
path: root/altosui/Altos.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-09-09 12:29:32 -0700
committerKeith Packard <keithp@keithp.com>2012-09-09 12:29:32 -0700
commit9682e9e6fe730417a77b47795fbe1f06c9a51177 (patch)
treebe836448407436123ae611ddd841989aefaae12b /altosui/Altos.java
parentd65d921b9b2340fa23d3b55b4ae755324d392303 (diff)
altosui: Use helper functions to access arrays in AltosLib class
These deal with out-of-range values correctly, instead of causing exceptions that will just break stuff. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/Altos.java')
-rw-r--r--altosui/Altos.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/altosui/Altos.java b/altosui/Altos.java
index e60b3aaa..cd17a93e 100644
--- a/altosui/Altos.java
+++ b/altosui/Altos.java
@@ -72,20 +72,6 @@ public class Altos extends AltosLib {
static final int text_width = 20;
- static public int state(String state) {
- if (!map_initialized)
- initialize_map();
- if (string_to_state.containsKey(state))
- return string_to_state.get(state);
- return ao_flight_invalid;
- }
-
- static public String state_name(int state) {
- if (state < 0 || state_to_string.length <= state)
- return "invalid";
- return state_to_string[state];
- }
-
static public boolean initialized = false;
static public boolean loaded_library = false;