浏览代码

codacy: remove unused code

AndyScherzinger 7 年之前
父节点
当前提交
0ade905557

+ 0 - 12
src/androidTest/java/com/owncloud/android/uiautomator/InitialTest.java

@@ -131,18 +131,6 @@ public class InitialTest {
         return resolveInfo.activityInfo.packageName;
     }
 
-    /**
-     * Helper to click on objects that match the content-description text.
-     *
-     * @param description the description
-     * @throws UiObjectNotFoundException
-     */
-    private void clickByDescription(String description) throws UiObjectNotFoundException {
-        UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
-        UiObject obj = device.findObject(new UiSelector().description(description));
-        obj.clickAndWaitForNewWindow();
-    }
-
     /**
      * Helper to click on object that match the text value.
      *

+ 0 - 1
src/main/java/com/owncloud/android/features/FeatureList.java

@@ -36,7 +36,6 @@ import java.util.List;
  */
 public class FeatureList {
     private static final boolean SHOW_ON_FIRST_RUN = true;
-    private static final boolean SHOW_ON_UPGRADE = false;
 
     private static final int VERSION_1_0_0 = 10000099;
     private static final int VERSION_3_0_0 = 30000099;

+ 0 - 2
src/main/java/com/owncloud/android/ui/dialog/SendShareDialog.java

@@ -51,7 +51,6 @@ import java.util.List;
  * You should have received a copy of the GNU Affero General Public License
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
-
 public class SendShareDialog extends BottomSheetDialogFragment {
 
     private static final String KEY_OCFILE = "KEY_OCFILE";
@@ -62,7 +61,6 @@ public class SendShareDialog extends BottomSheetDialogFragment {
     private View view;
     private OCFile file;
     private FileOperationsHelper fileOperationsHelper;
-    private FileDisplayActivity fileDisplayActivity;
 
     public static SendShareDialog newInstance(OCFile file) {
 

+ 1 - 2
src/main/java/com/owncloud/android/ui/preview/PreviewImageActivity.java

@@ -68,8 +68,7 @@ public class PreviewImageActivity extends FileActivity implements
         ViewPager.OnPageChangeListener, OnRemoteOperationListener {
 
     public static final String TAG = PreviewImageActivity.class.getSimpleName();
-    
-    public static final String KEY_WAITING_TO_PREVIEW = "WAITING_TO_PREVIEW";
+
     private static final String KEY_WAITING_FOR_BINDER = "WAITING_FOR_BINDER";
     private static final String KEY_SYSTEM_VISIBLE = "TRUE";