Got rid of unused preferences#1672
Conversation
00d53a9 to
99b775c
Compare
|
Should we try to collect the preference strings we remove and provide a function to erase those from the preferences? The string can then be kept for a few years and finally retired for good. |
99b775c to
dd926db
Compare
|
How did you find out which preferences are unused? Did the IDE mark them as unused? There is no need to manually cleanup the registry from old preferences. Hardly any software actually does that and we are just talking about a few key value pairs. |
|
|
||
| private void openWindow() { | ||
| // Perform checks and changes for users with a preference set from an older JabRef version. | ||
| PreferencesMigrations.replaceAbstractField(); |
There was a problem hiding this comment.
Why did you remove this? Because it's too old?
There was a problem hiding this comment.
Because the code checks if GENERAL_FIELDS contains abstract and in that case removes if from GENERAL_FIELDS.
The thing is that the only place GENERAL_FIELDS is used in the current master is for setting a default value...
// The general fields stuff is made obsolete by the CUSTOM_TAB_... entries.
defaults.put(GENERAL_FIELDS, "crossref;keywords;file;doi;url;urldate;"
+ "pdf;comment;owner");|
I searched (almost) every string constant in The ones marked as not changable are simply used in (typically) two places, once to set the default value and then they are used in one line of code (and that is not the preference dialog). |
|
Ok, since this is somewhat hard to review by looking at the code, we'll trust you here. Please merge and rebase! |
|
I can summarize:
|
|
Just go ahead and merge this 😄 👍 |
dd926db to
75b66de
Compare
* master: (22 commits) Do not cite entries without a key in OpenOffice/LibreOffice (JabRef#1682) (JabRef#1683) Got rid of unused preferences (JabRef#1672) Move labelpattern (JabRef#1626) Implementation of shared database support (full system). (JabRef#1451) Removed bst from architecture tests JabRef#1699 Update PULL_REQUEST_TEMPLATE.md French localization: Menu: Translation of an empty string French localization: Jabref_fr: empty strings translated Updated string similarity version (JabRef#1698) Minify description of release process Announce switch from GPL to MIT in CONTRIBUTING.md and README.md Some cleanups to initialize empty MetaData at fewer positions (JabRef#1696) Automatic group names are converted from LaTeX to Unicode (JabRef#1684) Update ISSUE_TEMPLATE.md (JabRef#1686) Removed (false) NPE issue reported by FindBugs More Swedish translations (JabRef#1691) Updated wiremock version (JabRef#1690) Some minor code cleanups (JabRef#1689) Removed dependencies of Globals.prefs in some tests (JabRef#1688) Lookup BibEntry from ISBN and merge information (JabRef#1621) ... # Conflicts: # src/main/java/net/sf/jabref/gui/BasePanel.java # src/main/java/net/sf/jabref/importer/ImportMenuItem.java # src/main/resources/l10n/JabRef_da.properties # src/main/resources/l10n/JabRef_de.properties # src/main/resources/l10n/JabRef_en.properties # src/main/resources/l10n/JabRef_es.properties # src/main/resources/l10n/JabRef_fa.properties # src/main/resources/l10n/JabRef_fr.properties # src/main/resources/l10n/JabRef_in.properties # src/main/resources/l10n/JabRef_it.properties # src/main/resources/l10n/JabRef_ja.properties # src/main/resources/l10n/JabRef_nl.properties # src/main/resources/l10n/JabRef_no.properties # src/main/resources/l10n/JabRef_pt_BR.properties # src/main/resources/l10n/JabRef_ru.properties # src/main/resources/l10n/JabRef_sv.properties # src/main/resources/l10n/JabRef_tr.properties # src/main/resources/l10n/JabRef_vi.properties # src/main/resources/l10n/JabRef_zh.properties
* Fully removed support for changing field start/end character * Removed unused preferences
And marked some which can not be changed from within JabRef.