Skip to content

Commit a22781e

Browse files
committed
chore: Remove irrelevant code from runformat
1 parent cfd1797 commit a22781e

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

runformat

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,4 @@ if [ "$DETECTED_VERSION" != "${UNCRUSTIFY_VERSION}" ]; then
2121
exit 1
2222
fi
2323

24-
# OS variables
25-
[ $(uname -s) = "Darwin" ] && export OSX=1 && export UNIX=1
26-
[ $(uname -s) = "Linux" ] && export LINUX=1 && export UNIX=1
27-
uname -s | grep -q "_NT-" && export WINDOWS=1
28-
29-
if [ $OSX ]
30-
then
31-
export CPUCOUNT=$(sysctl -n hw.ncpu)
32-
elif [ $LINUX ]
33-
then
34-
export CPUCOUNT=$(nproc)
35-
else
36-
export CPUCOUNT="1"
37-
fi
38-
3924
$UNCRUSTIFY -c .uncrustify.cfg --no-backup *.cpp *.h

0 commit comments

Comments
 (0)