Commit 1d001ec5f6e70c545a7209d5072905a4bd3013ca

Authored by Shrikant Sharat
1 parent d22fb4b908

Removed unused piece of code.

Showing 1 changed file with 0 additions and 18 deletions Side-by-side Diff

... ... @@ -194,24 +194,6 @@ bundle-init () {
194 194 compinit -i
195 195 }
196 196  
197   -# A python command wrapper. Almost the same as `python -c`, but dedents the
198   -# source string.
199   -py () {
200   - code="$1"
201   -
202   - # Find indentation from first line.
203   - indent="$(echo "$code" | grep -m1 -v '^$' | grep -o '^\s*' | wc -c)"
204   -
205   - # Strip that many spaces in the start from each line.
206   - if [[ $indent != 0 ]]; then
207   - indent=$(($indent - 1))
208   - code="$(echo "$code" | sed "s/^\s\{$indent\}//")"
209   - fi
210   -
211   - # Run the piece of code.
212   - python -c "$code"
213   -}
214   -
215 197 # Does what it says.
216 198 echo-non-empty () {
217 199 echo "$@" | while read line; do