aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/sign.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nvim/sign.c b/src/nvim/sign.c
index dc4c322a19..01f6c275af 100644
--- a/src/nvim/sign.c
+++ b/src/nvim/sign.c
@@ -339,19 +339,6 @@ void buf_addsign(
}
insert_sign_by_lnum_prio(buf, prev, id, groupname, prio, lnum, typenr);
-
- // Having more than one sign with _the same type_ and on the _same line_ is
- // unwanted, let's prevent it.
-
- lastp = &buf->b_signlist;
- for (sign = buf->b_signlist; sign != NULL; sign = sign->next) {
- if (lnum == sign->lnum && sign->typenr == typenr && id != sign->id) {
- *lastp = sign->next;
- xfree(sign);
- } else {
- lastp = &sign->next;
- }
- }
}
// For an existing, placed sign "markId" change the type to "typenr".