From 935964bbf5b617cabe0a02471e5942ac3bba7cdf Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 20 Jan 2014 18:06:38 +0100 Subject: [PATCH] Remove unused zathura_adjustment_clone Signed-off-by: Sebastian Ramacher --- adjustment.c | 14 -------------- adjustment.h | 11 ----------- 2 files changed, 25 deletions(-) diff --git a/adjustment.c b/adjustment.c index af07009..8d2b513 100644 --- a/adjustment.c +++ b/adjustment.c @@ -146,20 +146,6 @@ page_is_visible(zathura_document_t *document, unsigned int page_number) fabs(pos_y - page_y) < 0.5 * (double)(view_height + cell_height) / (double)doc_height); } -GtkAdjustment* -zathura_adjustment_clone(GtkAdjustment* adjustment) -{ - gdouble value = gtk_adjustment_get_value(adjustment); - gdouble lower = gtk_adjustment_get_lower(adjustment); - gdouble upper = gtk_adjustment_get_upper(adjustment); - gdouble step_increment = gtk_adjustment_get_step_increment(adjustment); - gdouble page_increment = gtk_adjustment_get_page_increment(adjustment); - gdouble page_size = gtk_adjustment_get_page_size(adjustment); - - return GTK_ADJUSTMENT(gtk_adjustment_new(value, lower, upper, step_increment, - page_increment, page_size)); -} - void zathura_adjustment_set_value(GtkAdjustment* adjustment, gdouble value) { diff --git a/adjustment.h b/adjustment.h index 96ceb4c..b62e7ca 100644 --- a/adjustment.h +++ b/adjustment.h @@ -69,17 +69,6 @@ void page_number_to_position(zathura_document_t* document, unsigned int page_num */ bool page_is_visible(zathura_document_t *document, unsigned int page_number); -/** - * Clone a GtkAdjustment - * - * Creates a new adjustment with the same value, lower and upper bounds, step - * and page increments and page_size as the original adjustment. - * - * @param adjustment Adjustment instance to be cloned - * @return Pointer to the new adjustment - */ -GtkAdjustment* zathura_adjustment_clone(GtkAdjustment* adjustment); - /** * Set the adjustment value while enforcing its limits *