[2917] in BarnOwl Developers
Re: [PATCH] Kill owl_fmtext_set_char
daemon@ATHENA.MIT.EDU (Nelson Elhage)
Tue Feb 22 10:19:53 2011
In-Reply-To: <1298240951-28396-1-git-send-email-davidben@mit.edu>
Date: Tue, 22 Feb 2011 10:19:49 -0500
From: Nelson Elhage <nelhage@nelhage.com>
To: David Benjamin <davidben@mit.edu>
Cc: barnowl-dev@mit.edu
lgtm
On Sun, Feb 20, 2011 at 5:29 PM, David Benjamin <davidben@mit.edu> wrote:
> This function is a little disturbing and, thankfully, no longer used by
> anyone.
> ---
> =C2=A0fmtext.c | =C2=A0 11 -----------
> =C2=A01 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)
> =C2=A0 return f->buff->len;
> =C2=A0}
>
> -/* set the charater at 'index' to be 'char'. =C2=A0If 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)
> -{
> - =C2=A0if ((index < 0) || (index > f->buff->len - 1)) return;
> - =C2=A0/* NOT ASCII*/
> - =C2=A0if (f->buff->str[index] & 0x80 || ch & 0x80) return;
> - =C2=A0f->buff->str[index] =3D ch;
> -}
> -
> =C2=A0/* Make a copy of the fmtext 'src' into 'dst' */
> =C2=A0void owl_fmtext_copy(owl_fmtext *dst, const owl_fmtext *src)
> =C2=A0{
> --
> 1.7.3.3.399.g06ddf
>
>