Remove duplicate unique history check

Signed-off-by: Claus Fischer <claus.fischer@clausfischer.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Claus Fischer 2017-11-29 15:02:37 +01:00 committed by Joachim Nilsson
parent ed37cef412
commit 4b8333ad39

View File

@ -1047,8 +1047,6 @@ static void hist_add(const char *p)
if (H.Pos && strcmp(p, H.Lines[H.Pos - 1]) == 0)
return;
#endif
if (H.Size && strcmp(p, H.Lines[H.Size - 1]) == 0)
return;
if ((s = strdup(p)) == NULL)
return;