ref: 428cc541f822e6f49ce26d970b5b030e8b1b696d
parent: 3426459ab5a5a41497a62d90cd9ccdc0458e205e
author: ftrvxmtrx <devnull@localhost>
date: Wed May 7 10:43:11 EDT 2014
sed: remove unused ecmp function
--- a/sys/src/cmd/sed.c
+++ b/sys/src/cmd/sed.c
@@ -177,7 +177,6 @@
Rune *compsub(Rune *, Rune *);
void dechain(void);
void dosub(Rune *);
-int ecmp(Rune *, Rune *, int);
void enroll(char *);
void errexit(void);
int executable(SedCom *);
@@ -1323,13 +1322,6 @@
while (n--)
Bputrune(bp, *buf++);
Bputc(bp, '\n');
-}
-ecmp(Rune *a, Rune *b, int count)
-{
- while(count--)
- if(*a++ != *b++)
- return 0;
- return 1;
}
void