Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 3c0cb8b

Browse files
committed
Clean up dead code
1 parent f88c746 commit 3c0cb8b

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

app/src/main/java/com/zulip/android/activities/MessageListFragment.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ public class MessageListFragment extends Fragment implements MessageListener {
6363
public interface Listener {
6464
void onListResume(MessageListFragment f);
6565

66-
void addToList(Message message);
67-
6866
void recyclerViewScrolled();
6967

7068
void clearChatBox();
@@ -374,7 +372,6 @@ public void onMessages(Message[] messages, LoadPosition pos,
374372

375373
if (stream != null && filter == null) { //Filter muted messages only in homescreen.
376374
if (mMutedTopics.isTopicMute(message)) {
377-
mListener.addToList(message);
378375
continue;
379376
}
380377
}

app/src/main/java/com/zulip/android/activities/ZulipActivity.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import android.content.DialogInterface;
1313
import android.content.Intent;
1414
import android.content.IntentFilter;
15-
import android.content.SharedPreferences;
1615
import android.content.pm.PackageManager;
1716
import android.content.res.Configuration;
1817
import android.database.Cursor;
@@ -126,14 +125,11 @@ public class ZulipActivity extends BaseActivity implements
126125
private static final int MIN_THRESOLD_EMOJI_HINT = 1;
127126
private static final int PERMISSION_REQUEST_READ_CONTACTS = 1;
128127
private ZulipApp app;
129-
private List<Message> mutedTopics;
130128

131129
private boolean suspended = false;
132130
private boolean logged_in = false;
133131

134132
private ZulipActivity that = this; // self-ref
135-
private SharedPreferences settings;
136-
String client_id;
137133

138134
private DrawerLayout drawerLayout;
139135
private ActionBarDrawerToggle drawerToggle;
@@ -151,8 +147,6 @@ public class ZulipActivity extends BaseActivity implements
151147

152148
private Handler statusUpdateHandler;
153149

154-
private Toolbar toolbar;
155-
156150
public MessageListFragment currentList;
157151
private MessageListFragment narrowedList;
158152
private MessageListFragment homeList;
@@ -242,11 +236,6 @@ public boolean setViewValue(View view, Cursor cursor, int i) {
242236

243237
private RefreshableCursorAdapter peopleAdapter;
244238

245-
@Override
246-
public void addToList(Message message) {
247-
mutedTopics.add(message);
248-
}
249-
250239
@Override
251240
public void recyclerViewScrolled() {
252241
/* in this method we check if the messageEt is empty or not
@@ -309,7 +298,7 @@ protected void onCreate(Bundle savedInstanceState) {
309298
notifications = new Notifications(this);
310299
notifications.register();
311300
setContentView(R.layout.main);
312-
toolbar = (Toolbar) findViewById(R.id.toolbar);
301+
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
313302
setSupportActionBar(toolbar);
314303
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
315304
getSupportActionBar().setHomeButtonEnabled(true);
@@ -323,7 +312,6 @@ protected void onCreate(Bundle savedInstanceState) {
323312
appBarLayout = (AppBarLayout) findViewById(R.id.appBarLayout);
324313
app.setZulipActivity(this);
325314
togglePrivateStreamBtn = (ImageView) findViewById(R.id.togglePrivateStream_btn);
326-
mutedTopics = new ArrayList<>();
327315
drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
328316
drawerToggle = new ActionBarDrawerToggle(this, drawerLayout,
329317
R.drawable.ic_drawer, R.string.streams_open,

0 commit comments

Comments
 (0)