mirror of https://github.com/flysand7/ciabatta.git
Remove unused function
This commit is contained in:
parent
81feacd996
commit
06aa9a096c
|
@ -210,14 +210,6 @@ static int try_fputc(FILE *stream, char c) {
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int try_fputs(FILE *stream, char *str, size_t len) {
|
|
||||||
for(size_t i = 0; i != len; ++i) {
|
|
||||||
int cw = try_fputc(stream, str[i]);
|
|
||||||
if(cw == EOF) return EOF;
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int fputc(int c, FILE *stream) {
|
int fputc(int c, FILE *stream) {
|
||||||
mtx_lock(&stream->lock);
|
mtx_lock(&stream->lock);
|
||||||
int res = try_fputc(stream, c);
|
int res = try_fputc(stream, c);
|
||||||
|
|
Loading…
Reference in New Issue