Skip to content

Commit 3fcb922

Browse files
committed
Remove unused method
1 parent 2fbc56c commit 3fcb922

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

src/test/java/ezvcard/util/TestUtils.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import java.util.List;
1818
import java.util.Map;
1919
import java.util.Set;
20-
import java.util.TimeZone;
2120
import java.util.stream.Collectors;
2221

2322
import ezvcard.VCard;
@@ -268,34 +267,6 @@ public static <T> void assertSetEquals(Set<T> actualSet, T... expectedElements)
268267
assertEquals(expectedSet, actualSet);
269268
}
270269

271-
/**
272-
* Creates a GMT timezone.
273-
* @param offsetMillis the offset in milliseconds
274-
* @return the timezone
275-
*/
276-
public static TimeZone gmtTz(long offsetMillis) {
277-
long totalMinutes = Math.abs(offsetMillis / 1000 / 60);
278-
long hours = totalMinutes / 60;
279-
long minutes = totalMinutes % 60;
280-
281-
StringBuilder tzid = new StringBuilder("GMT");
282-
tzid.append((offsetMillis >= 0) ? '+' : '-');
283-
284-
if (hours < 10) {
285-
tzid.append('0');
286-
}
287-
tzid.append(hours);
288-
289-
tzid.append(':');
290-
291-
if (minutes < 10) {
292-
tzid.append('0');
293-
}
294-
tzid.append(minutes);
295-
296-
return TimeZone.getTimeZone(tzid.toString());
297-
}
298-
299270
/**
300271
* <p>
301272
* Asserts some of the basic rules for the equals() method:

0 commit comments

Comments
 (0)