aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-15 18:15:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-15 18:26:52 +0800
commit591bcbeb910e0d90dc4076f09c23074c96a2e857 (patch)
tree16514386d71fae7761beeb2efba10dd918718dae /widgets/text
parent2e113a61cc18428ecb603374dfcc833c5e276422 (diff)
downloadgsoc2013-evolution-591bcbeb910e0d90dc4076f09c23074c96a2e857.tar
gsoc2013-evolution-591bcbeb910e0d90dc4076f09c23074c96a2e857.tar.gz
gsoc2013-evolution-591bcbeb910e0d90dc4076f09c23074c96a2e857.tar.bz2
gsoc2013-evolution-591bcbeb910e0d90dc4076f09c23074c96a2e857.tar.lz
gsoc2013-evolution-591bcbeb910e0d90dc4076f09c23074c96a2e857.tar.xz
gsoc2013-evolution-591bcbeb910e0d90dc4076f09c23074c96a2e857.tar.zst
gsoc2013-evolution-591bcbeb910e0d90dc4076f09c23074c96a2e857.zip
Remove a bunch of unused functions.
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