Skip to content

Commit 075b989

Browse files
committed
remove unused method from ProfilingUtils
1 parent b48cbda commit 075b989

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/ProfilingUtils.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package org.wordpress.android.util;
22

3-
import android.content.Context;
4-
import android.content.pm.PackageInfo;
5-
import android.content.pm.PackageManager;
63
import android.os.SystemClock;
74

85
import org.wordpress.android.util.AppLog.T;
@@ -76,16 +73,5 @@ public void dumpToLog() {
7673
}
7774
AppLog.d(T.PROFILING, mLabel + ": end, " + (now - first) + " ms");
7875
}
79-
80-
// Returns app version name String
81-
public static String getVersionName(Context context) {
82-
PackageManager pm = context.getPackageManager();
83-
try {
84-
PackageInfo pi = pm.getPackageInfo(context.getPackageName(), 0);
85-
return pi.versionName == null ? "" : pi.versionName;
86-
} catch (PackageManager.NameNotFoundException e) {
87-
return "";
88-
}
89-
}
9076
}
9177

0 commit comments

Comments
 (0)