File tree Expand file tree Collapse file tree
app/src/main/java/com/owncloud/android/datamodel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939import com .nextcloud .client .database .dao .OfflineOperationDao ;
4040import com .nextcloud .client .database .entity .FileEntity ;
4141import com .nextcloud .client .database .entity .OfflineOperationEntity ;
42- import com .nextcloud .client .database .entity .ShareEntity ;
4342import com .nextcloud .client .jobs .offlineOperations .repository .OfflineOperationsRepository ;
4443import com .nextcloud .client .jobs .offlineOperations .repository .OfflineOperationsRepositoryType ;
4544import com .nextcloud .model .OCFileFilterType ;
8483import java .util .List ;
8584import java .util .Locale ;
8685import java .util .Set ;
87- import java .util .function .Consumer ;
8886
8987import androidx .annotation .NonNull ;
9088import androidx .annotation .Nullable ;
@@ -1818,19 +1816,6 @@ public void saveSharesDB(List<OCShare> shares) {
18181816 applyBatch (operations );
18191817 }
18201818
1821- // TODO check:
1822- private void resetShareFlags (List <String > sharePaths ) {
1823- ArrayList <ContentProviderOperation > operations = new ArrayList <>();
1824- String filePath = "" ;
1825- for (String sharePath : sharePaths ) {
1826- if (!filePath .equals (sharePath )) {
1827- filePath = sharePath ;
1828- resetShareFlagInAFile (filePath );
1829- prepareRemoveSharesInFile (filePath , operations );
1830- }
1831- }
1832- }
1833-
18341819 private void applyBatch (ArrayList <ContentProviderOperation > operations ) {
18351820 try {
18361821 if (getContentResolver () != null ) {
You can’t perform that action at this time.
0 commit comments