From 591bcbeb910e0d90dc4076f09c23074c96a2e857 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 15 Sep 2009 05:15:53 -0500 Subject: Remove a bunch of unused functions. --- widgets/text/e-text-model-repos.c | 20 -------------------- widgets/text/e-text-model-repos.h | 12 ------------ 2 files changed, 32 deletions(-) (limited to 'widgets/text') diff --git a/widgets/text/e-text-model-repos.c b/widgets/text/e-text-model-repos.c index ef31f91def..206ef3f8c1 100644 --- a/widgets/text/e-text-model-repos.c +++ b/widgets/text/e-text-model-repos.c @@ -25,15 +25,6 @@ #define MODEL_CLAMP(model, pos) (CLAMP((pos), 0, strlen((model)->text))) -gint -e_repos_shift (gint pos, gpointer data) -{ - EReposShift *info = (EReposShift *) data; - g_return_val_if_fail (data, -1); - - return e_text_model_validate_position (info->model, pos + info->change); -} - gint e_repos_absolute (gint pos, gpointer data) { @@ -74,14 +65,3 @@ e_repos_delete_shift (gint pos, gpointer data) return e_text_model_validate_position (info->model, pos); } - -gint -e_repos_clamp (gint pos, gpointer data) -{ - ETextModel *model; - - g_return_val_if_fail (data != NULL && E_IS_TEXT_MODEL (data), -1); - model = E_TEXT_MODEL (data); - - return e_text_model_validate_position (model, pos); -} diff --git a/widgets/text/e-text-model-repos.h b/widgets/text/e-text-model-repos.h index 1c602a88b6..f6d50a1111 100644 --- a/widgets/text/e-text-model-repos.h +++ b/widgets/text/e-text-model-repos.h @@ -27,13 +27,6 @@ #include "e-text-model.h" -typedef struct { - ETextModel *model; - gint change; /* Relative change to position. */ -} EReposShift; - -gint e_repos_shift (gint pos, gpointer data); - typedef struct { ETextModel *model; gint pos; /* Position to move to. Negative values count from the end buffer. @@ -58,9 +51,4 @@ typedef struct { gint e_repos_delete_shift (gint pos, gpointer data); -/* For e_repos_clamp, data is a pointer to an ETextModel. The only repositioning - that occurs is to avoid buffer overruns. */ - -gint e_repos_clamp (gint pos, gpointer data); - #endif -- cgit v1.2.3