Mercurial > octave
comparison libgui/src/gui-settings.h @ 31637:34c3cd39c4b9
eliminate unused gui_pref::ignore data member
* gui-settings.h (gui_settings::value): Don't check pref.ignore. No
code in Octave sets it to true.
* gui-preferences.h (gui_pref::ignore): Delete unused data member.
(gui_pref::gui_pref): Remove ignore arg from constructor.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 04 Dec 2022 15:29:51 -0500 |
parents | 0645ea65ca6b |
children | 474e184321d3 |
comparison
equal
deleted
inserted
replaced
31636:b69d89906ae9 | 31637:34c3cd39c4b9 |
---|---|
66 | 66 |
67 using QSettings::value; | 67 using QSettings::value; |
68 | 68 |
69 QVariant value (const gui_pref& pref) const | 69 QVariant value (const gui_pref& pref) const |
70 { | 70 { |
71 if (pref.ignore) | |
72 return pref.def; // ignore the current pref and always use default | |
73 | |
74 return value (pref.key, pref.def); | 71 return value (pref.key, pref.def); |
75 } | 72 } |
76 | 73 |
77 /*! | 74 /*! |
78 Reading a color from the given QVaraitn @p def taking different | 75 Reading a color from the given QVaraitn @p def taking different |