ref: 9946b0342e9ff4346e8ae048a7258fb1e94c4b0e
parent: 6fab44640c8c962e3e4c818761a948b12849931d
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
--
⑨