From 048832484374bfd2c1635ac24f67bed7e2af49f8 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Sat, 15 Oct 2016 16:29:57 +0900 Subject: [PATCH] Removed DpConverter class --- .../syncthingandroid/util/DpConverter.java | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 src/main/java/com/nutomic/syncthingandroid/util/DpConverter.java diff --git a/src/main/java/com/nutomic/syncthingandroid/util/DpConverter.java b/src/main/java/com/nutomic/syncthingandroid/util/DpConverter.java deleted file mode 100644 index 22f1d194..00000000 --- a/src/main/java/com/nutomic/syncthingandroid/util/DpConverter.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.nutomic.syncthingandroid.util; - -import android.content.Context; - -import static android.util.TypedValue.COMPLEX_UNIT_DIP; -import static android.util.TypedValue.applyDimension; - -public abstract class DpConverter { - - /** - * Converts dips to pixels. - * - * @param dp Number of dps - * @param c The context to convert in. - * @return Number of pixels that equal dp in context. - */ - public static int dp(int dp, Context c) { - return (int) applyDimension(COMPLEX_UNIT_DIP, dp, c.getResources().getDisplayMetrics()); - } -} \ No newline at end of file