From 3bb5d9edb7101e4591e31b522929a9c5d7ad7ea6 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 30 Jan 2008 19:59:22 +0100 Subject: cleanup --- src/GipfelWidget.H | 2 -- src/GipfelWidget.cxx | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/src/GipfelWidget.H b/src/GipfelWidget.H index 435c9be..838f290 100644 --- a/src/GipfelWidget.H +++ b/src/GipfelWidget.H @@ -129,8 +129,6 @@ class GipfelWidget : public Fl_Widget { int get_pixel(GipfelWidget::sample_mode_t, double a_alph, double a_nick, int *r, int *g, int *b); - double get_angle_off(double view, double nick); - int get_distortion_profile_name(char *buf, int buflen); int save_distortion_params(const char *prof_name, int force); diff --git a/src/GipfelWidget.cxx b/src/GipfelWidget.cxx index 8303e46..b7a9c54 100644 --- a/src/GipfelWidget.cxx +++ b/src/GipfelWidget.cxx @@ -35,8 +35,6 @@ static double pi_d, deg2rad; static void center_cb(Fl_Widget *o, void *f); GipfelWidget::GipfelWidget(int X,int Y,int W, int H): Fl_Widget(X, Y, W, H) { - int i; - pi_d = asin(1.0) * 2.0; deg2rad = pi_d / 180.0; img = NULL; @@ -336,7 +334,6 @@ GipfelWidget::draw() { fl_pop_clip(); } - static int overlap(double m1, double n1, double m2, double n2) { return m1 <= n2 && n1 >= m2; @@ -408,7 +405,6 @@ GipfelWidget::set_cur_mountain(int m_x, int m_y) { return 1; } - int GipfelWidget::toggle_known_mountain(int m_x, int m_y) { Hills *mnts = pan->get_visible_mountains(); @@ -668,7 +664,6 @@ GipfelWidget::set_track_width(double w) { redraw(); } - int GipfelWidget::handle(int event) { int mark_x, mark_y; @@ -779,14 +774,6 @@ GipfelWidget::get_pixel(GipfelWidget::sample_mode_t m, return ret; } -double -GipfelWidget::get_angle_off(double a_alph, double a_nick) { - double angle = atan(pow(pow(tan(a_alph - pan->parms.a_center), 2.0) + - pow(tan(a_nick - pan->parms.a_nick), 2.0), 0.5)); - - return angle; -} - int GipfelWidget::get_pixel_nearest(Fl_Image *img, double x, double y, int *r, int *g, int *b) { -- cgit v1.2.3