Skip to content

Commit

Permalink
Remove unused old code. Fix for #197
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Dec 4, 2019
1 parent 0428577 commit b3c1362
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2019-12-05
- Remove unused old code. Fix for #197

2019-12-04
- Fix bidir export issues. Cleanup code. Fix for #195

Expand Down
2 changes: 0 additions & 2 deletions bin/nfdump.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ void lex_cleanup(void);

void lex_init(char *buf);

int ScreenIPString(char *string);

int ScreenIdentString(char *string);

// Insert the RB prototypes here
Expand Down
21 changes: 0 additions & 21 deletions bin/scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -282,27 +282,6 @@ int yywrap(void) {
return 1;
}

int ScreenIPString(char *string) {
char *c;

// [0-9A-Fa-f:][0-9A-Fa-f\.:]+[0-9A-Fa-f:] {
int len = strlen(string);
if ( len < 3 || len > 39 )
return 0;

if ( !isxdigit(string[0]) )
return 0;

c = &string[1];
while ( *c ) {
if ( *c != '.' || *c != ':' || !isxdigit(*c) )
return 0;
c++;
}
return 1;

} // End of ScreenString

int ScreenIdentString(char *string) {
char *c;

Expand Down

0 comments on commit b3c1362

Please sign in to comment.