Skip to content

Commit 95e8832

Browse files
committed
Removes unused function "indent".
1 parent 4a679ca commit 95e8832

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/git-split-file.sh

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -125,30 +125,6 @@ error() {
125125
}
126126
# ==============================================================================
127127

128-
# ==============================================================================
129-
# sed -l basically makes sed replace and buffer through stdin to stdout
130-
# so you get updates while the command runs and dont wait for the end
131-
# e.g. npm install
132-
# ------------------------------------------------------------------------------
133-
indent() {
134-
# if an arg is given it's a flag indicating we shouldn't indent the first line,
135-
# so use :+ to tell SED accordingly if that parameter is set, otherwise null
136-
# string for no range selector prefix (it selects from line 2 onwards and then
137-
# every 1st line, meaning all lines)
138-
139-
# @CHECKME: Shouldn't the line below be used?
140-
# c="${1:+"2,999"} s/^/ /"
141-
c='s/^/ /g'
142-
if [[ "$(uname -s)" == "Darwin" ]];then
143-
# mac/bsd sed: -l buffers on line boundaries
144-
sed -l "$c"
145-
else
146-
# unix/gnu sed: -u unbuffered (arbitrary) chunks of data
147-
sed -u "$c"
148-
fi
149-
}
150-
# ==============================================================================
151-
152128
# ==============================================================================
153129
printMessage() {
154130
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)