diff options
| author | Keith Packard <keithp@keithp.com> | 2016-06-15 22:52:08 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2016-06-15 22:52:08 -0700 | 
| commit | f7e2f7f430e612c682bf55478860054ce94b995f (patch) | |
| tree | d8274c9fdc2b3731e4b8a2438a7e453a7cd23b37 /altoslib/AltosFrequency.java | |
| parent | 1b5ea911049a8afae6af475a4a2bf62a6e3aa57b (diff) | |
altoslib: Remove AltosHashSet code
Everything has switched to JSON now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosFrequency.java')
| -rw-r--r-- | altoslib/AltosFrequency.java | 19 | 
1 files changed, 0 insertions, 19 deletions
diff --git a/altoslib/AltosFrequency.java b/altoslib/AltosFrequency.java index 99828d53..3c1631a8 100644 --- a/altoslib/AltosFrequency.java +++ b/altoslib/AltosFrequency.java @@ -58,14 +58,6 @@ public class AltosFrequency implements AltosJsonable {  		return diff < 0.010;  	} -	public AltosHashSet hashSet() { -		AltosHashSet	h = new AltosHashSet(); - -		h.putDouble("frequency", frequency); -		h.putString("description", description); -		return h; -	} -  	public AltosJson json() {  		AltosJson	j = new AltosJson(); @@ -79,17 +71,6 @@ public class AltosFrequency implements AltosJsonable {  		description = d;  	} -	private AltosFrequency(AltosHashSet h) { -		frequency = h.getDouble("frequency", 0.0); -		description = h.getString("description", ""); -	} - -	public static AltosFrequency fromHashSet(AltosHashSet h, AltosFrequency def) { -		if (h == null) -			return def; -		return new AltosFrequency(h); -	} -  	private AltosFrequency(AltosJson j) {  		frequency = j.get_double("frequency", 0.0);  		description = j.get_string("description", "");  | 
