common.sh: move remove_quotes to single user

This is only used by cros_show_stacks code, so move it there.  The
common.sh script is loaded by a lot of tools in different repos,
so lets strip it down to untangle it.

BUG=None
TEST=CQ passes

Change-Id: I3b687e688295f741a8bc4ed4f2571fdd198f38e0
Reviewed-on: https://chromium-review.googlesource.com/1759160
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
diff --git a/common.sh b/common.sh
index 75f9b75..23bfa18 100644
--- a/common.sh
+++ b/common.sh
@@ -540,15 +540,6 @@
   fi
 }
 
-# Removes single quotes around parameter
-# Arguments:
-#   $1 - string which optionally has surrounding quotes
-# Returns:
-#   None, but prints the string without quotes.
-remove_quotes() {
-  echo "$1" | sed -e "s/^'//; s/'$//"
-}
-
 # Writes stdin to the given file name as root using sudo in overwrite mode.
 #
 # $1 - The output file name.
diff --git a/cros_show_stacks b/cros_show_stacks
index d0d29d9..a5e3c36 100755
--- a/cros_show_stacks
+++ b/cros_show_stacks
@@ -37,6 +37,15 @@
   rm -rf "${TMP}"
 }
 
+# Removes single quotes around parameter
+# Arguments:
+#   $1 - string which optionally has surrounding quotes
+# Returns:
+#   None, but prints the string without quotes.
+remove_quotes() {
+  echo "$1" | sed -e "s/^'//; s/'$//"
+}
+
 # Echoes kind of crash (minidump or kcrash).
 get_kind() {
   local kind="${1##*.}"