removed unused code. fixes AntennaPod/AntennaPod#935

This commit is contained in:
Tom Hennen 2015-08-01 10:49:18 -04:00
parent d9f8dc53a6
commit 8cb5f68dd7
1 changed files with 0 additions and 47 deletions

View File

@ -42,10 +42,6 @@ public class FlattrUtils {
private static final String PREF_ACCESS_TOKEN = "de.danoeh.antennapod.preference.flattrAccessToken";
// Human-readable flattr-page.
public static final String APP_LINK = "https://flattr.com/thing/745609/";
public static final String APP_THING_ID = "745609";
private static volatile AccessToken cachedToken;
private static AndroidAuthenticator createAuthenticator() {
@ -108,18 +104,6 @@ public class FlattrUtils {
storeToken(null);
}
public static Thing getAppThing(Context context) {
FlattrService fs = FlattrServiceCreator.getService(retrieveToken());
try {
Thing thing = fs.getThing(Thing.withId(APP_THING_ID));
return thing;
} catch (FlattrException e) {
e.printStackTrace();
showErrorDialog(context, e.getMessage());
return null;
}
}
public static void clickUrl(Context context, String url)
throws FlattrException {
if (hasToken()) {
@ -243,37 +227,6 @@ public class FlattrUtils {
}
}
public static void showForbiddenDialog(final Context context,
final String url) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.action_forbidden_title);
builder.setMessage(R.string.action_forbidden_msg);
builder.setPositiveButton(R.string.authenticate_now_label,
new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
context.startActivity(
ClientConfig.flattrCallbacks.getFlattrAuthenticationActivityIntent(context));
}
}
);
builder.setNegativeButton(R.string.visit_website_label,
new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Uri uri = Uri.parse(url);
context.startActivity(new Intent(Intent.ACTION_VIEW,
uri));
}
}
);
builder.create().show();
}
public static void showErrorDialog(final Context context, final String msg) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setTitle(R.string.error_label);