Skip to content

Commit

Permalink
style: remove all unused var and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeCrp committed Dec 1, 2018
1 parent 5e2ee6c commit e9a561c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 51 deletions.
16 changes: 0 additions & 16 deletions Samva/app/src/main/java/com/example/utilisateur/samva/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ public String getTimetable() {
return timetable;
}

public void setTimetable(String timetable) {
this.timetable = timetable;
putDate(timetable);


/*
String[] enter = timetable.split(";");
for (int i = 0; i < enter.length; i++) {
String[] date = enter[i].split(" ");
this.date[i][0] = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse(date[0]);
this.date[i][1] = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss").parse(date[1]);
}*/

}

public String getAddress() {
return address;
}
Expand Down Expand Up @@ -110,7 +95,6 @@ public void putDate(String timetable){
else {
enter[0] = timetable;
}
String[][] enter2 = new String[enter.length][2];
this.date = new String[enter.length][2];

for (int i = 0; i < enter.length; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.TabLayout;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Toast;
Expand All @@ -27,21 +24,11 @@
import java.util.ArrayList;
import java.util.List;

import retrofit2.Retrofit;

public class MainActivity extends AppCompatActivity implements MainActivityCallback, TabLayout.OnTabSelectedListener{

private Retrofit retrofit;
private RecyclerView rcvEvents;
private EventAdapter eventsAdapter;
private ArrayList<Event> events = new ArrayList<>();
private List<Event> eventbis;

FragmentManager fragmentManager;
FragmentTransaction fragmentTransaction;
MapsFragment mapsFragment;
ListFragment listFragment;

private TabLayout tabLayout;
private StatePagerAdapterFragment statePagerAdapterFragment;
private ViewPager viewPager;
Expand Down Expand Up @@ -77,24 +64,6 @@ public void onCancelled(@NonNull DatabaseError databaseError) {
});
}

public void createFragment() {

Context context = getApplicationContext();
fragmentManager = getSupportFragmentManager();
fragmentTransaction = fragmentManager.beginTransaction();
mapsFragment = new MapsFragment();
listFragment = new ListFragment();

Bundle bundleEvents = new Bundle();
bundleEvents.putSerializable("EVENTS_LIST", this.events);
listFragment.setArguments(bundleEvents);


//fragmentTransaction.add(R.id.container, mapsFragment);
fragmentTransaction.add(R.id.container, listFragment);
fragmentTransaction.commit();

}

public void details(Event event) {
Intent intent = new Intent(this, EventActivity.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;

Expand All @@ -26,7 +25,6 @@ public class MapsFragment extends Fragment implements GoogleMap.OnMarkerClickLis

View rootView;
private GoogleMap gMap;
Context context = getContext();
private SupportMapFragment mSupportMapFragment;

ArrayList<Event> eventList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class RecyclerItemClickListener implements RecyclerView.OnItemTouchListen


public interface OnItemClickListener {
public void onItemClick(View view, int position);
void onItemClick(View view, int position);
}

public RecyclerItemClickListener(Context context, OnItemClickListener listener) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public int getNbPlaces() {

public void setNbPlaces(int nbPlaces) {
this.nbPlaces = nbPlaces;
//passengers = new ArrayList<String>(nbPlaces);
}

public String getDepartPlace() {
Expand Down

0 comments on commit e9a561c

Please sign in to comment.