From 0fa27ea9841ce82b8e24fa0ea2975be2ca1137a4 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Wed, 8 Jan 2014 21:33:38 +0100 Subject: remove unused variables --- src/GsWidget.cxx | 3 +-- src/PSEditWidget.cxx | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/GsWidget.cxx b/src/GsWidget.cxx index dbf7340..f6c58e3 100644 --- a/src/GsWidget.cxx +++ b/src/GsWidget.cxx @@ -256,13 +256,12 @@ GsWidget::load_page(int p) { } int GsWidget::fd_copy(int to, int from, size_t len) { - size_t n, r; + size_t r; char buf[1024]; int ret = 0; signal(SIGPIPE, SIG_IGN); // don't die if gs has a problem - n = 0; while(len > 0) { Fl::check(); // let fltk do its stuff diff --git a/src/PSEditWidget.cxx b/src/PSEditWidget.cxx index 31230f2..df956f1 100644 --- a/src/PSEditWidget.cxx +++ b/src/PSEditWidget.cxx @@ -277,11 +277,9 @@ int PSEditWidget::get_size() { void PSEditWidget::set_color(const PSEditColor *c) { PSEditText *t; - uchar *p; t = model->get_cur_text(); - p = (uchar*) &c; cur_text_color.set(c); model->set_color(&cur_text_color); -- cgit v1.2.3