diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-18 10:12:08 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-18 10:38:08 +0000 |
commit | 53f16c39f5c4c69ab603bf9098daec71f7a0acb8 (patch) | |
tree | 00b3166ecff36bb55dcf0b8c2122a08b72656ab5 /bin/find-unused-typedefs.sh | |
parent | Clean up (diff) | |
download | core-53f16c39f5c4c69ab603bf9098daec71f7a0acb8.tar.gz core-53f16c39f5c4c69ab603bf9098daec71f7a0acb8.zip |
remove unused typedefs and inline use-once typedefs
and improve the script a little
Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84
Reviewed-on: https://gerrit.libreoffice.org/20033
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'bin/find-unused-typedefs.sh')
-rwxr-xr-x | bin/find-unused-typedefs.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/find-unused-typedefs.sh b/bin/find-unused-typedefs.sh index a8039f552178..7a6f54b2b1c8 100755 --- a/bin/find-unused-typedefs.sh +++ b/bin/find-unused-typedefs.sh @@ -18,9 +18,8 @@ # (8) if so, generate a sed command to remove the #define # bin/find-unused-typedefs.py \ - | sort \ - | uniq \ + | sort -u \ | xargs -Ixxx -n 1 -P 8 sh -c \ - "( git grep -w 'xxx' | awk -f bin/find-unused-defines.awk -v p1=xxx ) && echo \"xxx\" 1>&2" + '( git grep -w xxx | awk -f bin/find-unused-defines.awk -v p1=xxx ) && echo xxx 1>&2' |