Remove a lot of unused constants.

Spotted by Clang. No functional change intended.
This commit is contained in:
Augustin Cavalier 2018-11-24 19:21:16 -05:00
parent 766872a872
commit df4074fbed
16 changed files with 7 additions and 44 deletions

View File

@ -61,7 +61,6 @@ All rights reserved.
const int32 kDefaultRecentDocCount = 10; const int32 kDefaultRecentDocCount = 10;
const int32 kDefaultRecentFolderCount = 10;
const int32 kDefaultRecentAppCount = 10; const int32 kDefaultRecentAppCount = 10;
const int32 kMenuTrackMargin = 20; const int32 kMenuTrackMargin = 20;

View File

@ -37,7 +37,6 @@
#include "StatusView.h" #include "StatusView.h"
static const uint32 kSettingsViewChanged = 'Svch';
static const char* kSettingsFileName = "prefs_window_settings"; static const char* kSettingsFileName = "prefs_window_settings";

View File

@ -44,7 +44,6 @@ All rights reserved.
#include "tracker_private.h" #include "tracker_private.h"
const int32 kDesktopWindow = 4;
const float kHPad = 10.0f; const float kHPad = 10.0f;
const float kVPad = 2.0f; const float kVPad = 2.0f;

View File

@ -56,7 +56,6 @@ All rights reserved.
#include "CalendarMenuWindow.h" #include "CalendarMenuWindow.h"
static const char* const kMinString = "99:99 AM";
static const float kHMargin = 2.0; static const float kHMargin = 2.0;

View File

@ -47,15 +47,7 @@ All rights reserved.
#include "TeamMenuItem.h" #include "TeamMenuItem.h"
#include "tracker_private.h" #include "tracker_private.h"
#include "WindowMenuItem.h" #include "WindowMenuItem.h"
#include "WindowPrivate.h"
const int32 kDesktopWindow = 1024;
const int32 kMenuWindow = 1025;
const uint32 kWindowScreen = 1026;
const uint32 kNormalWindow = 0;
const int32 kTeamFloater = 4;
const int32 kListFloater = 5;
const int32 kSystemFloater = 6;
#undef B_TRANSLATION_CONTEXT #undef B_TRANSLATION_CONTEXT
@ -68,7 +60,7 @@ const int32 kSystemFloater = 6;
bool bool
TWindowMenu::WindowShouldBeListed(client_window_info* info) TWindowMenu::WindowShouldBeListed(client_window_info* info)
{ {
return ((info->feel == kNormalWindow || info->feel == kWindowScreen) return ((info->feel == B_NORMAL_WINDOW_FEEL || info->feel == kWindowScreenFeel)
// Window has the right feel // Window has the right feel
&& info->show_hide_level <= 0); && info->show_hide_level <= 0);
// Window is not hidden // Window is not hidden

View File

@ -22,9 +22,7 @@
#include "GSUtility.h" #include "GSUtility.h"
const int32 kPages = 20; struct _gs_media_tracker {
struct _gs_media_tracker
{
BMediaFile* file; BMediaFile* file;
BMediaTrack* stream; BMediaTrack* stream;
int64 frames; int64 frames;

View File

@ -27,9 +27,6 @@
#include "utf8_functions.h" #include "utf8_functions.h"
const float kLightBGTint
= (B_LIGHTEN_1_TINT + B_LIGHTEN_1_TINT + B_NO_TINT) / 3.0;
// map control key shortcuts to drawable Unicode characters // map control key shortcuts to drawable Unicode characters
// cf. http://unicode.org/charts/PDF/U2190.pdf // cf. http://unicode.org/charts/PDF/U2190.pdf
const char* kUTF8ControlMap[] = { const char* kUTF8ControlMap[] = {

View File

@ -188,7 +188,6 @@ struct BTextView::LayoutData {
}; };
static const rgb_color kBlackColor = { 0, 0, 0, 255 };
static const rgb_color kBlueInputColor = { 152, 203, 255, 255 }; static const rgb_color kBlueInputColor = { 152, 203, 255, 255 };
static const rgb_color kRedInputColor = { 255, 152, 152, 255 }; static const rgb_color kRedInputColor = { 255, 152, 152, 255 };

View File

@ -35,8 +35,6 @@ namespace BHPKG {
namespace BPrivate { namespace BPrivate {
static const size_t kScratchBufferSize = 64 * 1024;
static const uint16 kAttributeTypes[B_HPKG_ATTRIBUTE_ID_ENUM_COUNT] = { static const uint16 kAttributeTypes[B_HPKG_ATTRIBUTE_ID_ENUM_COUNT] = {
#define B_DEFINE_HPKG_ATTRIBUTE(id, type, name, constant) \ #define B_DEFINE_HPKG_ATTRIBUTE(id, type, name, constant) \
B_HPKG_ATTRIBUTE_TYPE_##type, B_HPKG_ATTRIBUTE_TYPE_##type,

View File

@ -92,12 +92,6 @@ All rights reserved.
const char* kAllMimeTypes = "mime/ALLTYPES"; const char* kAllMimeTypes = "mime/ALLTYPES";
const BRect kInitialRect(0, 0, 0, 0);
const int32 kInitialAttrModeWindowHeight = 140;
const int32 kIncrementPerAttribute = 30;
const float kMoreOptionsDelta = 20;
const uint32 kMoreOptionsMessage = 'mrop';
const uint32 kNameModifiedMessage = 'nmmd'; const uint32 kNameModifiedMessage = 'nmmd';
const uint32 kSwitchToQueryTemplate = 'swqt'; const uint32 kSwitchToQueryTemplate = 'swqt';
const uint32 kRunSaveAsTemplatePanel = 'svtm'; const uint32 kRunSaveAsTemplatePanel = 'svtm';
@ -217,7 +211,7 @@ MoreOptionsStruct::QueryTemporary(const BNode* node)
FindWindow::FindWindow(const entry_ref* newRef, bool editIfTemplateOnly) FindWindow::FindWindow(const entry_ref* newRef, bool editIfTemplateOnly)
: :
BWindow(kInitialRect, B_TRANSLATE("Find"), B_TITLED_WINDOW, BWindow(BRect(), B_TRANSLATE("Find"), B_TITLED_WINDOW,
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_CLOSE_ON_ESCAPE B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_CLOSE_ON_ESCAPE
| B_AUTO_UPDATE_SIZE_LIMITS), | B_AUTO_UPDATE_SIZE_LIMITS),
fFile(TryOpening(newRef)), fFile(TryOpening(newRef)),

View File

@ -39,8 +39,6 @@ All rights reserved.
#include "TaskLoop.h" #include "TaskLoop.h"
const float kTaskOverhead = 0.01f;
// this should really be specified by the task itself
const float kIdleTreshold = 0.15f; const float kIdleTreshold = 0.15f;
const bigtime_t kInfinity = B_INFINITE_TIMEOUT; const bigtime_t kInfinity = B_INFINITE_TIMEOUT;

View File

@ -93,7 +93,6 @@ static const char* kNetPositiveSignature = "application/x-vnd.Be-NPOS";
static const char* kPeopleSignature = "application/x-vnd.Be-PEPL"; static const char* kPeopleSignature = "application/x-vnd.Be-PEPL";
static const BRect kDefaultFrame(40, 40, 695, 350); static const BRect kDefaultFrame(40, 40, 695, 350);
static const int32 sDefaultQueryTemplateCount = 3;
struct ColumnData struct ColumnData

View File

@ -51,7 +51,6 @@
static const float kBorderResizeLength = 22.0; static const float kBorderResizeLength = 22.0;
static const float kResizeKnobSize = 18.0;
static inline uint8 static inline uint8

View File

@ -27,9 +27,6 @@
#endif #endif
static const float kResizeKnobSize = 18.0;
static const rgb_color kFrameColors[4] = { static const rgb_color kFrameColors[4] = {
{ 152, 152, 152, 255 }, { 152, 152, 152, 255 },
{ 240, 240, 240, 255 }, { 240, 240, 240, 255 },

View File

@ -29,9 +29,6 @@
using namespace BPrivate; using namespace BPrivate;
const float kMaxTabWidth = 165.;
bool bool
StackingEventHandler::HandleMessage(SATWindow* sender, StackingEventHandler::HandleMessage(SATWindow* sender,
BPrivate::LinkReceiver& link, BPrivate::LinkSender& reply) BPrivate::LinkReceiver& link, BPrivate::LinkSender& reply)

View File

@ -15,7 +15,6 @@
#include <LayoutUtils.h> #include <LayoutUtils.h>
static const float kTopOffset = 10.0f;
static const int kIconStripeWidth = 30; static const int kIconStripeWidth = 30;