File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
app/src/main/java/com/owncloud/android/datamodel Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 39
39
import com .nextcloud .client .database .dao .OfflineOperationDao ;
40
40
import com .nextcloud .client .database .entity .FileEntity ;
41
41
import com .nextcloud .client .database .entity .OfflineOperationEntity ;
42
- import com .nextcloud .client .database .entity .ShareEntity ;
43
42
import com .nextcloud .client .jobs .offlineOperations .repository .OfflineOperationsRepository ;
44
43
import com .nextcloud .client .jobs .offlineOperations .repository .OfflineOperationsRepositoryType ;
45
44
import com .nextcloud .model .OCFileFilterType ;
84
83
import java .util .List ;
85
84
import java .util .Locale ;
86
85
import java .util .Set ;
87
- import java .util .function .Consumer ;
88
86
89
87
import androidx .annotation .NonNull ;
90
88
import androidx .annotation .Nullable ;
@@ -1818,19 +1816,6 @@ public void saveSharesDB(List<OCShare> shares) {
1818
1816
applyBatch (operations );
1819
1817
}
1820
1818
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
-
1834
1819
private void applyBatch (ArrayList <ContentProviderOperation > operations ) {
1835
1820
try {
1836
1821
if (getContentResolver () != null ) {
You can’t perform that action at this time.
0 commit comments