aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text')
-rw-r--r--widgets/text/e-text-model-repos.c20
-rw-r--r--widgets/text/e-text-model-repos.h12
2 files changed, 0 insertions, 32 deletions
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
@@ -26,15 +26,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)
{
EReposAbsolute *info = (EReposAbsolute *) 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
@@ -29,13 +29,6 @@
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.
(i.e. -1 puts cursor at the end, -2 one character from end, etc.) */
} EReposAbsolute;
@@ -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