[go: nahoru, domu]

Skip to content

Commit

Permalink
remove unused method from ProfilingUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Aug 20, 2014
1 parent f464cdb commit 2b0241f
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package org.wordpress.android.util;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.SystemClock;

import org.wordpress.android.util.AppLog.T;
Expand Down Expand Up @@ -76,16 +73,5 @@ public void dumpToLog() {
}
AppLog.d(T.PROFILING, mLabel + ": end, " + (now - first) + " ms");
}

// Returns app version name String
public static String getVersionName(Context context) {
PackageManager pm = context.getPackageManager();
try {
PackageInfo pi = pm.getPackageInfo(context.getPackageName(), 0);
return pi.versionName == null ? "" : pi.versionName;
} catch (PackageManager.NameNotFoundException e) {
return "";
}
}
}

0 comments on commit 2b0241f

Please sign in to comment.