Skip to content

Commit

Permalink
Remove duped function
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Sep 29, 2024
1 parent 0f5ea07 commit 7ffeb3d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions RichString.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ void RichString_rewind(RichString* this, int count) {
RichString_setLen(this, this->chlen - count);
}

void RichString_setAttr_preserveWithStandout(RichString* this, int attrs) {
RichString_setAttrn_preserveWithStandout(this, attrs, 0, this->chlen - 1);
}

#ifdef HAVE_LIBNCURSESW

static size_t mbstowcs_nonfatal(wchar_t* restrict dest, const char* restrict src, size_t n) {
Expand Down Expand Up @@ -195,10 +199,6 @@ void RichString_setAttrn_preserveWithStandout(RichString* this, int attrs, int s
}
}

void RichString_setAttr_preserveWithStandout(RichString* this, int attrs) {
RichString_setAttrn_preserveWithStandout(this, attrs, 0, this->chlen - 1);
}

void RichString_appendChr(RichString* this, int attrs, char c, int count) {
int from = this->chlen;
int newLen = from + count;
Expand Down Expand Up @@ -283,10 +283,6 @@ void RichString_setAttrn_preserveWithStandout(RichString* this, int attrs, int s
}
}

void RichString_setAttr_preserveWithStandout(RichString* this, int attrs) {
RichString_setAttrn_preserveWithStandout(this, attrs, 0, this->chlen - 1);
}

void RichString_appendChr(RichString* this, int attrs, char c, int count) {
int from = this->chlen;
int newLen = from + count;
Expand Down

0 comments on commit 7ffeb3d

Please sign in to comment.