removed unused code

updated lib version
This commit is contained in:
Mariotaku Lee 2017-04-03 15:14:32 +08:00
parent b89b3d4963
commit eb6318bede
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
2 changed files with 1 additions and 20 deletions

View File

@ -56,7 +56,7 @@ subprojects {
TwitterText : '1.14.3',
MediaViewerLibrary: '0.9.23',
MultiValueSwitch : '0.9.8',
PickNCrop : '0.9.23',
PickNCrop : '0.9.24',
AndroidGIFDrawable: '1.2.6',
KPreferences : '0.9.6'
]

View File

@ -18,8 +18,6 @@ import org.mariotaku.twidere.util.Utils;
import java.io.IOException;
import static org.mariotaku.twidere.constant.SharedPreferenceConstants.KEY_MEDIA_LINK_COUNTS_IN_STATUS;
/**
* Created by mariotaku on 16/9/9.
*/
@ -30,12 +28,6 @@ public class DefaultFeatures {
private static final String KEY_DEFAULT_TWITTER_CONSUMER_KEY = "default_twitter_consumer_key";
private static final String KEY_DEFAULT_TWITTER_CONSUMER_SECRET = "default_twitter_consumer_secret";
@JsonField(name = "media_link_counts_in_status")
boolean mediaLinkCountsInStatus = false;
@JsonField(name = "mentions_counts_in_status")
boolean mentionsCountsInStatus = false;
@JsonField(name = "default_twitter_consumer_key")
String defaultTwitterConsumerKey;
@ -48,14 +40,6 @@ public class DefaultFeatures {
@JsonField(name = "twitter_direct_message_max_participants")
long twitterDirectMessageMaxParticipants = 50;
public boolean isMediaLinkCountsInStatus() {
return mediaLinkCountsInStatus;
}
public boolean isMentionsCountsInStatus() {
return mentionsCountsInStatus;
}
public String getDefaultTwitterConsumerKey() {
return defaultTwitterConsumerKey;
}
@ -100,15 +84,12 @@ public class DefaultFeatures {
public void load(SharedPreferences preferences) {
mediaLinkCountsInStatus = preferences.getBoolean(KEY_MEDIA_LINK_COUNTS_IN_STATUS,
mediaLinkCountsInStatus);
defaultTwitterConsumerKey = preferences.getString(KEY_DEFAULT_TWITTER_CONSUMER_KEY, null);
defaultTwitterConsumerSecret = preferences.getString(KEY_DEFAULT_TWITTER_CONSUMER_SECRET, null);
}
public void save(SharedPreferences preferences) {
final SharedPreferences.Editor editor = preferences.edit();
editor.putBoolean(KEY_MEDIA_LINK_COUNTS_IN_STATUS, mediaLinkCountsInStatus);
editor.putString(KEY_DEFAULT_TWITTER_CONSUMER_KEY, defaultTwitterConsumerKey);
editor.putString(KEY_DEFAULT_TWITTER_CONSUMER_SECRET, defaultTwitterConsumerSecret);
editor.apply();