Commit 67432b5
adapter.aasx: allow deleting files from
`AbstractSupplementaryFileContainer` and
`DictSupplementaryFileContainer` are extended by a `delete_file()`
method, that allows deleting files from them. Since different files may
have the same content, references to the files contents in
`DictSupplementaryFileContainer._store` are tracked via
`_store_refcount`. A files contents are only deleted from `_store`, if
all filenames referring to these these contents are deleted, i.e. if the
refcount reaches 0.SupplementaryFileContainer
1 parent ecf4c13 commit 67432b5
2 files changed
+39
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
781 | 788 | | |
782 | 789 | | |
783 | 790 | | |
| |||
802 | 809 | | |
803 | 810 | | |
804 | 811 | | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
805 | 815 | | |
806 | 816 | | |
807 | 817 | | |
808 | 818 | | |
809 | 819 | | |
810 | 820 | | |
| 821 | + | |
811 | 822 | | |
812 | 823 | | |
813 | 824 | | |
814 | 825 | | |
815 | 826 | | |
816 | 827 | | |
| 828 | + | |
817 | 829 | | |
818 | 830 | | |
819 | 831 | | |
| |||
839 | 851 | | |
840 | 852 | | |
841 | 853 | | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
842 | 864 | | |
843 | 865 | | |
844 | 866 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
57 | 74 | | |
58 | 75 | | |
59 | 76 | | |
| |||
0 commit comments