Avoid unused private fields

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2024-04-22 15:53:49 +02:00
parent 71aa037430
commit 51cfe52ba8
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
6 changed files with 1 additions and 13 deletions

View file

@ -26,7 +26,6 @@ import it.niedermann.owncloud.notes.databinding.ActivityAboutBinding;
public class AboutActivity extends LockedActivity {
private ActivityAboutBinding binding;
private final static int POS_CREDITS = 0;
private final static int POS_CONTRIB = 1;
private final static int POS_LICENSE = 2;
private final static int TOTAL_COUNT = 3;

View file

@ -21,7 +21,6 @@ import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
import androidx.preference.PreferenceManager;
import com.nextcloud.android.sso.exceptions.NextcloudFilesAppAccountNotFoundException;
@ -41,7 +40,6 @@ import it.niedermann.owncloud.notes.R;
import it.niedermann.owncloud.notes.accountpicker.AccountPickerListener;
import it.niedermann.owncloud.notes.branding.BrandingUtil;
import it.niedermann.owncloud.notes.databinding.ActivityEditBinding;
import it.niedermann.owncloud.notes.edit.category.CategoryViewModel;
import it.niedermann.owncloud.notes.main.MainActivity;
import it.niedermann.owncloud.notes.persistence.NotesRepository;
import it.niedermann.owncloud.notes.persistence.entity.Account;
@ -63,7 +61,6 @@ public class EditNoteActivity extends LockedActivity implements BaseNoteFragment
public static final String PARAM_CONTENT = "content";
public static final String PARAM_FAVORITE = "favorite";
private CategoryViewModel categoryViewModel;
private ActivityEditBinding binding;
private BaseNoteFragment fragment;
@ -91,9 +88,7 @@ public class EditNoteActivity extends LockedActivity implements BaseNoteFragment
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
}
});
categoryViewModel = new ViewModelProvider(this).get(CategoryViewModel.class);
binding = ActivityEditBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
setSupportActionBar(binding.toolbar);

View file

@ -38,7 +38,6 @@ import it.niedermann.owncloud.notes.shared.util.KeyboardUtils;
*/
public class CategoryDialogFragment extends BrandedDialogFragment {
private static final String TAG = CategoryDialogFragment.class.getSimpleName();
private static final String STATE_CATEGORY = "category";
private CategoryViewModel viewModel;

View file

@ -25,7 +25,6 @@ import it.niedermann.owncloud.notes.shared.util.KeyboardUtils;
public class EditTitleDialogFragment extends BrandedDialogFragment {
private static final String TAG = EditTitleDialogFragment.class.getSimpleName();
static final String PARAM_OLD_TITLE = "old_title";
private DialogEditTitleBinding binding;

View file

@ -81,7 +81,6 @@ import it.niedermann.owncloud.notes.databinding.ActivityNotesListViewBinding;
import it.niedermann.owncloud.notes.databinding.DrawerLayoutBinding;
import it.niedermann.owncloud.notes.edit.EditNoteActivity;
import it.niedermann.owncloud.notes.edit.category.CategoryDialogFragment;
import it.niedermann.owncloud.notes.edit.category.CategoryViewModel;
import it.niedermann.owncloud.notes.exception.ExceptionDialogFragment;
import it.niedermann.owncloud.notes.exception.IntendedOfflineException;
import it.niedermann.owncloud.notes.importaccount.ImportAccountActivity;
@ -114,7 +113,6 @@ public class MainActivity extends LockedActivity implements NoteClickListener, A
protected final ExecutorService executor = Executors.newCachedThreadPool();
protected MainViewModel mainViewModel;
private CategoryViewModel categoryViewModel;
private boolean gridView = true;
@ -150,7 +148,6 @@ public class MainActivity extends LockedActivity implements NoteClickListener, A
super.onCreate(savedInstanceState);
mainViewModel = new ViewModelProvider(this).get(MainViewModel.class);
categoryViewModel = new ViewModelProvider(this).get(CategoryViewModel.class);
CapabilitiesWorker.update(this);
binding = DrawerLayoutBinding.inflate(getLayoutInflater());
activityBinding = ActivityNotesListViewBinding.bind(binding.activityNotesListView.getRoot());

View file

@ -45,7 +45,6 @@ import it.niedermann.owncloud.notes.shared.model.NoteClickListener;
public class ItemAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements Branded {
private static final String TAG = ItemAdapter.class.getSimpleName();
public static final int TYPE_SECTION = 0;
public static final int TYPE_NOTE_WITH_EXCERPT = 1;