Skip to content

Commit

Permalink
Remove extra log statement, ready for 1.1 release!
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Tarazi committed Jul 17, 2016
1 parent bf1bf48 commit 61a9a08
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ else if (searchQuery.compareTo(searchLocationBox.getQuery()) != 0 ||
if (multiFilters.containsAll(filterList) && restaurants.isEmpty())
multiFilters.clear();

Log.d("RRG", "contains all: " + multiFilters.containsAll(filterList));
if (filterBoxText.contains(",") && !multiFilters.containsAll(filterList)) {
multiFilters.clear();
multiFilters.addAll(filterList);
Expand Down Expand Up @@ -356,14 +355,6 @@ else if (searchQuery.compareTo(searchLocationBox.getQuery()) != 0 ||
displayAlertDialog(R.string.string_enter_valid_location, "Error");
} else {

Log.d("RRG", "contains all: " + multiFilters.containsAll(filterList));
for (String a : multiFilters) {
Log.d("RRG", "MultiFilters: " + a);
}
for (String a : filterList) {
Log.d("RRG", "filterList: " + a);
}

/**
* Split the filters by comma if the user wants multiple filters.
* Run separate query for each filter.
Expand Down Expand Up @@ -851,10 +842,8 @@ protected Restaurant doInBackground(Void... aVoid) {

// Get restaurants only when the restaurants list is empty.
Restaurant chosenRestaurant = null;
Log.d("RRG", "SIZE: " + restaurants.size());
if (restaurants == null || restaurants.isEmpty()) {
successfulQuery = queryYelp(lat, lon, userInputStr, userFilterStr, 0);
Log.d("RRG", "Queried yelp: " + successfulQuery);

if (successfulQuery) {

Expand All @@ -877,8 +866,6 @@ protected Restaurant doInBackground(Void... aVoid) {
restaurants.remove(chosenRestaurant);
}

Log.d("RRG", "run background " + runBackgroundQueryAfter);

// Return randomly chosen restaurant.
return chosenRestaurant;
}
Expand All @@ -887,8 +874,6 @@ protected Restaurant doInBackground(Void... aVoid) {
@Override
protected void onPostExecute(Restaurant restaurant) {

Log.d("RRG", "ERROR: " + errorInQuery);

if (restaurant == null) {
if (errorInQuery == TypeOfError.NO_RESTAURANTS) {
Toast.makeText(getContext(),
Expand Down

0 comments on commit 61a9a08

Please sign in to comment.