[2914] in BarnOwl Developers
[PATCH] Kill owl_fmtext_set_char
daemon@ATHENA.MIT.EDU (David Benjamin)
Sun Feb 20 17:29:27 2011
From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Sun, 20 Feb 2011 17:29:11 -0500
This function is a little disturbing and, thankfully, no longer used by
anyone.
---
fmtext.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/fmtext.c b/fmtext.c
index a763ff9..fbeabb6 100644
--- a/fmtext.c
+++ b/fmtext.c
@@ -583,17 +583,6 @@ int owl_fmtext_num_bytes(const owl_fmtext *f)
return f->buff->len;
}
-/* set the charater at 'index' to be 'char'. If index is out of
- * bounds don't do anything. If c or char at index is not ASCII, don't
- * do anything because it's not UTF-8 safe. */
-void owl_fmtext_set_char(owl_fmtext *f, int index, char ch)
-{
- if ((index < 0) || (index > f->buff->len - 1)) return;
- /* NOT ASCII*/
- if (f->buff->str[index] & 0x80 || ch & 0x80) return;
- f->buff->str[index] = ch;
-}
-
/* Make a copy of the fmtext 'src' into 'dst' */
void owl_fmtext_copy(owl_fmtext *dst, const owl_fmtext *src)
{
--
1.7.3.3.399.g06ddf