remove cast of unused variables - tscrape - twitter scraper
HTML git clone git://git.codemadness.org/tscrape
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d5e71f92f619c0f87bc6237caa7dd381be8e8f01
DIR parent 4a7f02171b4d5afd2cae29fa42f317b99f4ef852
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 10 Mar 2016 18:58:28 +0100
remove cast of unused variables
Diffstat:
M tscrape.c | 22 ----------------------
1 file changed, 0 insertions(+), 22 deletions(-)
---
DIR diff --git a/tscrape.c b/tscrape.c
@@ -142,10 +142,6 @@ html_entitytostr(const char *s, char *buf, size_t bufsiz)
static void
xmltagend(XMLParser *x, const char *t, size_t tl, int isshort)
{
- (void)x;
- (void)tl;
- (void)isshort;
-
if (!strcmp(t, "p"))
state &= ~Text;
else if (!strcmp(t, "span"))
@@ -159,10 +155,6 @@ xmltagstartparsed(XMLParser *x, const char *t, size_t tl, int isshort)
{
const char *v = classname;
- (void)x;
- (void)tl;
- (void)isshort;
-
if (!strcmp(t, "p") && isclassmatch(v, STRP("js-tweet-text"))) {
if (state & (Item | Stream | Header))
state |= Text;
@@ -195,12 +187,6 @@ static void
xmlattr(XMLParser *x, const char *t, size_t tl, const char *a, size_t al,
const char *v, size_t vl)
{
- (void)x;
- (void)t;
- (void)tl;
- (void)al;
- (void)vl;
-
if (!strcmp(a, "class")) {
strlcat(classname, v, sizeof(classname));
} else if ((state & Item) && !strcmp(t, "span") && !strcmp(a, "data-time")) {
@@ -227,9 +213,6 @@ xmlattrentity(XMLParser *x, const char *t, size_t tl, const char *a, size_t al,
static void
xmldata(XMLParser *x, const char *d, size_t dl)
{
- (void)x;
- (void)dl;
-
if (state & Username)
strlcat(username, d, sizeof(username));
else if (state & Fullname)
@@ -244,8 +227,6 @@ xmldataentity(XMLParser *x, const char *d, size_t dl)
char buf[16];
ssize_t len;
- (void)x;
-
if (!(state & (Text|Username|Fullname)))
return;
if ((len = html_entitytostr(d, buf, sizeof(buf))) > 0)
@@ -264,9 +245,6 @@ xmlcdata(XMLParser *x, const char *d, size_t dl)
int
pledge(const char *promises, const char *paths[])
{
- (void)promises;
- (void)paths;
-
return 0;
}
#endif