From bfa1ce6cd94fea4c0f003065d930f907fc6560ea Mon Sep 17 00:00:00 2001
From: Dylan Araps <dylan.araps@gmail.com>
Date: Tue, 13 Dec 2016 19:09:26 +1100
Subject: [PATCH] Info: Remove useless blocks

---
 neofetch | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/neofetch b/neofetch
index 0f511fdb..655b873b 100755
--- a/neofetch
+++ b/neofetch
@@ -2481,12 +2481,6 @@ info() {
 
     # Calculate info height
     info_height="$((info_height+=1))"
-
-    # Fix rendering issues with w3m and lines that
-    # wrap to the next line by adding a max line
-    # length.
-    [[ "$image_backend" == "image" ]] && \
-        string="$(printf "%.$((columns - text_padding - gap))s" "$string")"
 }
 
 prin() {
@@ -2508,12 +2502,6 @@ prin() {
     # Calculate info height
     info_height="$((info_height+=1))"
 
-    # Fix rendering issues with w3m and lines that
-    # wrap to the next line by adding a max line
-    # length.
-    [[ "$image_backend" == "image" ]] && \
-        string="$(printf "%.$((columns - text_padding - gap))s" "$string")"
-
     # Tell info() that prin() was used.
     prin=1
 }