Cleanup: remove deprecated/unused preferences DNA
authorCampbell Barton <ideasman42@gmail.com>
Wed, 6 Feb 2019 03:34:00 +0000 (14:34 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 6 Feb 2019 03:34:50 +0000 (14:34 +1100)
source/blender/makesdna/DNA_userdef_types.h
source/blender/makesrna/intern/rna_userdef.c

index 0627210a19b71a57e1ac561982caef26b7272f10..c9ada7e36378b53dde8c1d81570eef2011e4fb5c 100644 (file)
@@ -164,9 +164,6 @@ typedef struct ThemeUI {
 
        uiWidgetStateColors wcol_state;
 
-       /** Deprecated, but we keep it for do_versions (2.66.1). */
-       uiPanelColors panel;
-
        char widget_emboss[4];
 
        /* fac: 0 - 1 for blend factor, width in pixels */
@@ -176,7 +173,6 @@ typedef struct ThemeUI {
        char editor_outline[4];
        short pad[1];
 
-       char iconfile[256];     // FILE_MAXFILE length
        float icon_alpha;
        float icon_saturation;
        char _pad[4];
@@ -1003,7 +999,7 @@ typedef enum eText_Draw_Options {
 /** Grease Pencil Settings.
  * #UserDef.gp_settings */
 typedef enum eGP_UserdefSettings {
-       GP_PAINT_DOSMOOTH                   = (1 << 0),
+       // GP_PAINT_DOSMOOTH                = (1 << 0),  /* UNUSED */
        GP_PAINT_DOSIMPLIFY                 = (1 << 1),
 } eGP_UserdefSettings;
 
@@ -1047,16 +1043,6 @@ typedef enum eTimecodeStyles {
        USER_TIMECODE_SUBRIP        = 100,
 } eTimecodeStyles;
 
-/* theme drawtypes */
-/* XXX: These are probably only for the old UI engine? */
-typedef enum eTheme_DrawTypes {
-       TH_MINIMAL      = 0,
-       TH_ROUNDSHADED  = 1,
-       TH_ROUNDED      = 2,
-       TH_OLDSKOOL     = 3,
-       TH_SHADED       = 4,
-} eTheme_DrawTypes;
-
 /** #UserDef.ndof_flag (3D mouse options) */
 typedef enum eNdof_Flag {
        NDOF_SHOW_GUIDE     = (1 << 0),
index 2b06ae06dea40af3a2f3dbecbc47933fe5d67737..4063995bef320fa6f7a019a274006e3a2e952f8a 100644 (file)
@@ -1196,11 +1196,6 @@ static void rna_def_userdef_theme_ui(BlenderRNA *brna)
        RNA_def_property_range(prop, 0.0f, 24.0f);
        RNA_def_property_update(prop, 0, "rna_userdef_update");
 
-       prop = RNA_def_property(srna, "icon_file", PROP_STRING, PROP_FILEPATH);
-       RNA_def_property_string_sdna(prop, NULL, "iconfile");
-       RNA_def_property_ui_text(prop, "Icon File", "");
-       RNA_def_property_update(prop, 0, "rna_userdef_update");
-
        prop = RNA_def_property(srna, "icon_alpha", PROP_FLOAT, PROP_FACTOR);
        RNA_def_property_ui_text(prop, "Icon Alpha", "Transparency of icons in the interface, to reduce contrast");
        RNA_def_property_update(prop, 0, "rna_userdef_update");