Skip to content

Commit

Permalink
TFJ-653 remove methods retire on May 14th, 2012
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Yamamoto committed May 4, 2012
1 parent 8504895 commit 4fa659c
Show file tree
Hide file tree
Showing 28 changed files with 6 additions and 1,158 deletions.
233 changes: 0 additions & 233 deletions twitter4j-async/src/main/java/twitter4j/AsyncTwitterImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,6 @@ public void invoke(List<TwitterListener> listeners) throws
});
}

/**
* {@inheritDoc}
*/
public void getPublicTimeline() {
getDispatcher().invokeLater(new AsyncTask(PUBLIC_TIMELINE, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
ResponseList<Status> statuses = twitter.getPublicTimeline();
for (TwitterListener listener : listeners) {
try {
listener.gotPublicTimeline(statuses);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -202,40 +185,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void getFriendsTimeline() {
getDispatcher().invokeLater(new AsyncTask(FRIENDS_TIMELINE, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
ResponseList<Status> statuses = twitter.getFriendsTimeline();
for (TwitterListener listener : listeners) {
try {
listener.gotFriendsTimeline(statuses);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
public void getFriendsTimeline(final Paging paging) {
getDispatcher().invokeLater(new AsyncTask(FRIENDS_TIMELINE, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
ResponseList<Status> statuses = twitter.getFriendsTimeline(paging);
for (TwitterListener listener : listeners) {
try {
listener.gotFriendsTimeline(statuses);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -882,108 +831,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void getFriendsStatuses(final long cursor) {
getDispatcher().invokeLater(new AsyncTask(FRIENDS_STATUSES, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
PagableResponseList<User> users = twitter.getFriendsStatuses(cursor);
for (TwitterListener listener : listeners) {
try {
listener.gotFriendsStatuses(users);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
public void getFriendsStatuses(final String screenName, final long cursor) {
getDispatcher().invokeLater(new AsyncTask(FRIENDS_STATUSES, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
PagableResponseList<User> users = twitter.getFriendsStatuses(screenName, cursor);
for (TwitterListener listener : listeners) {
try {
listener.gotFriendsStatuses(users);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
public void getFriendsStatuses(final long userId, final long cursor) {
getDispatcher().invokeLater(new AsyncTask(FRIENDS_STATUSES, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
PagableResponseList<User> users = twitter.getFriendsStatuses(userId, cursor);
for (TwitterListener listener : listeners) {
try {
listener.gotFriendsStatuses(users);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
public void getFollowersStatuses(final long cursor) {
getDispatcher().invokeLater(new AsyncTask(FOLLOWERS_STATUSES, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
PagableResponseList<User> users = twitter.getFollowersStatuses(cursor);
for (TwitterListener listener : listeners) {
try {
listener.gotFollowersStatuses(users);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
public void getFollowersStatuses(final String screenName, final long cursor) {
getDispatcher().invokeLater(new AsyncTask(FOLLOWERS_STATUSES, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
PagableResponseList<User> users = twitter.getFollowersStatuses(screenName, cursor);
for (TwitterListener listener : listeners) {
try {
listener.gotFollowersStatuses(users);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
public void getFollowersStatuses(final long userId, final long cursor) {
getDispatcher().invokeLater(new AsyncTask(FOLLOWERS_STATUSES, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
PagableResponseList<User> users = twitter.getFollowersStatuses(userId, cursor);
for (TwitterListener listener : listeners) {
try {
listener.gotFollowersStatuses(users);
} catch (Exception ignore) {
}
}
}
});
}

/*List Methods*/

/**
Expand Down Expand Up @@ -1054,13 +901,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void showUserList(final String listOwnerScreenName, final int listId) {
showUserList(listId);
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -1095,20 +935,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void getUserListStatuses(final String listOwnerScreenName, final int id, final Paging paging) {
getUserListStatuses(id, paging);
}

/**
* {@inheritDoc}
*/
public void getUserListStatuses(final long listOwnerId, final int id, final Paging paging) {
getUserListStatuses(id, paging);
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -1244,30 +1070,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {

/*List Members Methods*/

/**
* {@inheritDoc}
*/
public void getUserListMembers(final String listOwnerScreenName, final int listId, final long cursor) {
getDispatcher().invokeLater(new AsyncTask(LIST_MEMBERS, listeners) {
public void invoke(List<TwitterListener> listeners) throws TwitterException {
PagableResponseList<User> users = twitter.getUserListMembers(listOwnerScreenName, listId, cursor);
for (TwitterListener listener : listeners) {
try {
listener.gotUserListMembers(users);
} catch (Exception ignore) {
}
}
}
});
}

/**
* {@inheritDoc}
*/
public void getUserListMembers(final long listOwnerId, final int listId, final long cursor) {
getUserListMembers(listId, cursor);
}

/**
* {@inheritDoc}
*/
Expand Down Expand Up @@ -1353,13 +1155,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void checkUserListMembership(final String listOwnerScreenName, final int listId, final long userId) {
showUserListMembership(listId, userId);
}

/**
* {@inheritDoc}
*/
Expand All @@ -1379,13 +1174,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {

/*List Subscribers Methods*/

/**
* {@inheritDoc}
*/
public void getUserListSubscribers(final String listOwnerScreenName, final int listId, final long cursor) {
getUserListSubscribers(listId, cursor);
}

/**
* {@inheritDoc}
*/
Expand All @@ -1403,13 +1191,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void subscribeUserList(final String listOwnerScreenName, final int listId) {
createUserListSubscription(listId);
}

/**
* {@inheritDoc}
*/
Expand All @@ -1427,13 +1208,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void unsubscribeUserList(final String listOwnerScreenName, final int listId) {
destroyUserListSubscription(listId);
}

/**
* {@inheritDoc}
*/
Expand All @@ -1451,13 +1225,6 @@ public void invoke(List<TwitterListener> listeners) throws TwitterException {
});
}

/**
* {@inheritDoc}
*/
public void checkUserListSubscription(final String listOwnerScreenName, final int listId, final long userId) {
showUserListSubscription(listId, userId);
}

/**
* {@inheritDoc}
*/
Expand Down
14 changes: 0 additions & 14 deletions twitter4j-async/src/main/java/twitter4j/TwitterAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,12 @@ public void gotWeeklyTrends(ResponseList<Trends> trendsList) {
}

/*Timeline Methods*/
public void gotPublicTimeline(ResponseList<Status> statuses) {
}

/**
* @since Twitter4J 2.0.10
*/
public void gotHomeTimeline(ResponseList<Status> statuses) {
}

public void gotFriendsTimeline(ResponseList<Status> statuses) {
}

public void gotUserTimeline(ResponseList<Status> statuses) {
}

Expand Down Expand Up @@ -184,11 +178,6 @@ public void gotMemberSuggestions(ResponseList<User> users) {
public void gotProfileImage(ProfileImage image) {
}

public void gotFriendsStatuses(PagableResponseList<User> users) {
}

public void gotFollowersStatuses(PagableResponseList<User> users) {
}
/*List Methods*/

/**
Expand Down Expand Up @@ -532,9 +521,6 @@ public void searchedPlaces(ResponseList<Place> places) {
public void gotSimilarPlaces(SimilarPlaces places) {
}

public void gotNearByPlaces(ResponseList<Place> places) {
}

public void gotReverseGeoCode(ResponseList<Place> places) {
}

Expand Down
Loading

0 comments on commit 4fa659c

Please sign in to comment.