Skip to content

Commit

Permalink
Removed unused view models
Browse files Browse the repository at this point in the history
- Removed check in view mode
- Removed check in history view model
- Removed search test location view model
  • Loading branch information
DanWlker committed Jan 5, 2022
1 parent 88a6864 commit 35d8a9b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

public class CheckIn extends Fragment {

private CheckInViewModel mViewModel;

// to handle image callback
ActivityResultLauncher<Intent> launchScanQRActivity;
Expand Down Expand Up @@ -87,7 +86,6 @@ public void onActivityResult(ActivityResult result) {
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mViewModel = new ViewModelProvider(this).get(CheckInViewModel.class);

// TODO: Use the ViewModel
View view = getView();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@

public class CheckInHistoryFragment extends Fragment {

private CheckInHistoryViewModel mViewModel;

EditText edTxtDate;
Calendar myCalendar = Calendar.getInstance();
Expand All @@ -57,7 +56,6 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mViewModel = new ViewModelProvider(this).get(CheckInHistoryViewModel.class);
// TODO: Use the ViewModel
View view = getView();

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

public class SearchTestLocation extends Fragment {

private SearchTestLocationViewModel mViewModel;
private ArrayList<PPVLocation> locations;
private ArrayList<PPVLocation> allLocations;
private String previousResult;
Expand All @@ -63,7 +62,6 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mViewModel = new ViewModelProvider(this).get(SearchTestLocationViewModel.class);


// TODO: Use the ViewModel
Expand Down

This file was deleted.

0 comments on commit 35d8a9b

Please sign in to comment.