mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-02-03 15:11:45 +00:00
prune dead code
This commit is contained in:
parent
c9fce466d1
commit
340651526d
3 changed files with 4 additions and 27 deletions
|
@ -595,7 +595,6 @@ gint HandleCommand( GtkWidget *widget, gpointer data ){
|
||||||
case ID_MISC_PREVIOUSLEAKSPOT: g_pParentWnd->OnMiscPreviousleakspot(); break;
|
case ID_MISC_PREVIOUSLEAKSPOT: g_pParentWnd->OnMiscPreviousleakspot(); break;
|
||||||
case ID_MISC_PRINTXY: g_pParentWnd->OnMiscPrintxy(); break;
|
case ID_MISC_PRINTXY: g_pParentWnd->OnMiscPrintxy(); break;
|
||||||
case ID_MISC_SELECTENTITYCOLOR: g_pParentWnd->OnMiscSelectentitycolor(); break;
|
case ID_MISC_SELECTENTITYCOLOR: g_pParentWnd->OnMiscSelectentitycolor(); break;
|
||||||
case ID_CONVERTCURVES: g_pParentWnd->OnConvertcurves(); break;
|
|
||||||
case ID_REGION_OFF: g_pParentWnd->OnRegionOff(); break;
|
case ID_REGION_OFF: g_pParentWnd->OnRegionOff(); break;
|
||||||
case ID_REGION_SETXY: g_pParentWnd->OnRegionSetxy(); break;
|
case ID_REGION_SETXY: g_pParentWnd->OnRegionSetxy(); break;
|
||||||
case ID_REGION_SETTALLBRUSH: g_pParentWnd->OnRegionSettallbrush(); break;
|
case ID_REGION_SETTALLBRUSH: g_pParentWnd->OnRegionSettallbrush(); break;
|
||||||
|
@ -6422,25 +6421,6 @@ void MainFrame::OnMiscSelectentitycolor(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainFrame::OnConvertcurves(){
|
|
||||||
#if 0
|
|
||||||
Select_Deselect();
|
|
||||||
for ( brush_t* pb = active_brushes.next ; pb != &active_brushes ; pb = pb->next )
|
|
||||||
{
|
|
||||||
if ( pb->curveBrush ) {
|
|
||||||
for ( face_t* f = pb->brush_faces ; f ; f = f->next )
|
|
||||||
{
|
|
||||||
if ( f->texdef.contents & CONTENTS_LADDER ) {
|
|
||||||
f->texdef.contents &= ~CONTENTS_LADDER;
|
|
||||||
f->texdef.contents |= CONTENTS_NEGATIVE_CURVE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Map_BuildBrushData();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainFrame::OnRegionOff(){
|
void MainFrame::OnRegionOff(){
|
||||||
Map_RegionOff();
|
Map_RegionOff();
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,7 +149,6 @@ struct SKeyInfo
|
||||||
#define ID_SELECTION_SELECT_NUDGEDOWN 32919
|
#define ID_SELECTION_SELECT_NUDGEDOWN 32919
|
||||||
#define ID_TEXTURES_LOADLIST 32920
|
#define ID_TEXTURES_LOADLIST 32920
|
||||||
#define ID_DONTSELECTCURVE 32923
|
#define ID_DONTSELECTCURVE 32923
|
||||||
#define ID_CONVERTCURVES 32924
|
|
||||||
#define ID_PATCH_SHOWBOUNDINGBOX 32926
|
#define ID_PATCH_SHOWBOUNDINGBOX 32926
|
||||||
#define ID_CURVE_SIMPLEPATCHMESH 32927
|
#define ID_CURVE_SIMPLEPATCHMESH 32927
|
||||||
#define ID_PATCH_WIREFRAME 32928
|
#define ID_PATCH_WIREFRAME 32928
|
||||||
|
@ -800,7 +799,6 @@ void OnSelectionSelectNudgeright();
|
||||||
void OnSelectionSelectNudgeup();
|
void OnSelectionSelectNudgeup();
|
||||||
void OnTexturesLoadlist();
|
void OnTexturesLoadlist();
|
||||||
void OnDontselectcurve();
|
void OnDontselectcurve();
|
||||||
void OnConvertcurves();
|
|
||||||
void OnCurveSimplepatchmesh();
|
void OnCurveSimplepatchmesh();
|
||||||
void OnPatchToggleBox();
|
void OnPatchToggleBox();
|
||||||
void OnPatchWireframe();
|
void OnPatchWireframe();
|
||||||
|
|
|
@ -380,13 +380,12 @@ typedef struct
|
||||||
#define CONTENTS_ORIGIN 0x1000000 // removed before bsping an entity
|
#define CONTENTS_ORIGIN 0x1000000 // removed before bsping an entity
|
||||||
|
|
||||||
#define CONTENTS_MONSTER 0x2000000 // should never be on a brush, only in game
|
#define CONTENTS_MONSTER 0x2000000 // should never be on a brush, only in game
|
||||||
#define CONTENTS_DEADMONSTER 0x4000000 // corpse
|
#define CONTENTS_DEADMONSTER 0x4000000 // corpse
|
||||||
#define CONTENTS_DETAIL 0x8000000 // brushes to be added after vis leafs
|
#define CONTENTS_DETAIL 0x8000000 // brushes to be added after vis leafs
|
||||||
#define CONTENTS_TRANSLUCENT 0x10000000 // auto set if any surface has trans
|
#define CONTENTS_TRANSLUCENT 0x10000000 // auto set if any surface has trans
|
||||||
#define CONTENTS_LADDER 0x20000000 // ladder
|
#define CONTENTS_LADDER 0x20000000 // ladder
|
||||||
#define CONTENTS_NEGATIVE_CURVE 0x40000000 // reverse inside / outside
|
|
||||||
|
|
||||||
#define CONTENTS_KEEP ( CONTENTS_DETAIL | CONTENTS_NEGATIVE_CURVE )
|
#define CONTENTS_KEEP CONTENTS_DETAIL
|
||||||
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
|
Loading…
Reference in a new issue