From 0626fe6c7c703d9df54310c44b7551d525f842da Mon Sep 17 00:00:00 2001
From: akwizgran <akwizgran@users.sourceforge.net>
Date: Fri, 7 Feb 2014 20:07:42 +0000
Subject: [PATCH] Removed unused StringUtils methods (one was moved to the
 sandpit).

---
 .../src/org/briarproject/util/StringUtils.java | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/briar-core/src/org/briarproject/util/StringUtils.java b/briar-core/src/org/briarproject/util/StringUtils.java
index db3f151e1d..547a195933 100644
--- a/briar-core/src/org/briarproject/util/StringUtils.java
+++ b/briar-core/src/org/briarproject/util/StringUtils.java
@@ -11,24 +11,6 @@ public class StringUtils {
 		return s == null || s.length() == 0;
 	}
 
-	/**
-	 * Trims the given string to the given length, returning the head and
-	 * appending "..." if the string was trimmed.
-	 */
-	public static String head(String s, int length) {
-		if(s.length() > length) return s.substring(0, length) + "...";
-		return s;
-	}
-
-	/**
-	 * Trims the given string to the given length, returning the tail and
-	 * prepending "..." if the string was trimmed.
-	 */
-	public static String tail(String s, int length) {
-		if(s.length() > length) return "..." + s.substring(s.length() - length);
-		return s;
-	}
-
 	/** Converts the given byte array to a hex character array. */
 	public static char[] toHexChars(byte[] bytes) {
 		char[] hex = new char[bytes.length * 2];
-- 
GitLab