Skip to content

Commit 2a23f41

Browse files
authored
Remove deadcode from vendored buildpack-stdlib (#1647)
The buildpack isn't using these logging helpers (they don't match the existing logging style, and also don't properly handling multi-line logs. GUS-W-16864551.
1 parent e3dbc78 commit 2a23f41

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

vendor/buildpack-stdlib_v8.sh

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -3,62 +3,6 @@
33
# Based on:
44
# https://raw.githubusercontent.com/heroku/buildpack-stdlib/v8/stdlib.sh
55

6-
# Standard Output
7-
# ---------------
8-
9-
# Buildpack Steps.
10-
puts_step() {
11-
if [[ "$*" == "-" ]]; then
12-
read -r output
13-
else
14-
output=$*
15-
fi
16-
echo -e "\\e[1m\\e[36m=== $output\\e[0m"
17-
unset output
18-
}
19-
20-
# Buildpack Error.
21-
puts_error() {
22-
if [[ "$*" == "-" ]]; then
23-
read -r output
24-
else
25-
output=$*
26-
fi
27-
echo -e "\\e[1m\\e[31m=!= $output\\e[0m"
28-
}
29-
30-
# Buildpack Warning.
31-
puts_warn() {
32-
if [[ "$*" == "-" ]]; then
33-
read -r output
34-
else
35-
output=$*
36-
fi
37-
echo -e "\\e[1m\\e[33m=!= $output\\e[0m"
38-
}
39-
40-
# Is verbose set?
41-
is_verbose() {
42-
if [[ -n $BUILDPACK_VERBOSE ]]; then
43-
return 0
44-
else
45-
return 1
46-
fi
47-
}
48-
49-
# Buildpack Verbose.
50-
puts_verbose() {
51-
if is_verbose; then
52-
if [[ "$*" == "-" ]]; then
53-
read -r output
54-
else
55-
output=$*
56-
fi
57-
echo "$output"
58-
unset output
59-
fi
60-
}
61-
626
# Buildpack Utilities
637
# -------------------
648

0 commit comments

Comments
 (0)