diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-03 09:55:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-03 11:12:31 +0200 |
commit | 0ea54aed15ee17a02c9dff861c16d06505f35741 (patch) | |
tree | 344e0be9c23b5c7941ad4012261bf5e38a135247 /bin | |
parent | 69df701742a9c3946e2031488c377c18a5ec4de0 (diff) |
remove some unused defines
Change-Id: I85a9a2bc12681e13fc482374165ff9bd6858dc93
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/find-unused-defines.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/find-unused-defines.sh b/bin/find-unused-defines.sh index 6f31ec47393e..d143a3e3b0a7 100755 --- a/bin/find-unused-defines.sh +++ b/bin/find-unused-defines.sh @@ -19,9 +19,9 @@ ( git grep -hP '^\w*#define\s+\w+.*\\' -- "[!e][!x][!t]*" \ && \ git grep -hP '^\w*#define\s+\w+\s*$' -- "[!e][!x][!t]*" ) \ + | sed -r 's/[ ]*#define[ ]+([a-zA-Z0-9_]+).*/\1/' \ | grep -v '_idl' \ | grep -vE '^INCLUDED_' \ - | sed -r 's/[ ]*#define[ ]+([a-zA-Z0-9_]+).*/\1/' \ | sort \ | uniq \ | xargs -Ixxx -n 1 -P 8 sh -c \ |