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 kDefaultRecentFolderCount = 10;
const int32 kDefaultRecentAppCount = 10;
const int32 kMenuTrackMargin = 20;

View File

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

View File

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

View File

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

View File

@ -47,15 +47,7 @@ All rights reserved.
#include "TeamMenuItem.h"
#include "tracker_private.h"
#include "WindowMenuItem.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;
#include "WindowPrivate.h"
#undef B_TRANSLATION_CONTEXT
@ -68,7 +60,7 @@ const int32 kSystemFloater = 6;
bool
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
&& info->show_hide_level <= 0);
// Window is not hidden

View File

@ -22,9 +22,7 @@
#include "GSUtility.h"
const int32 kPages = 20;
struct _gs_media_tracker
{
struct _gs_media_tracker {
BMediaFile* file;
BMediaTrack* stream;
int64 frames;
@ -384,7 +382,7 @@ BFileGameSound::Init(const entry_ref* file)
fAudioStream = NULL;
return B_NO_MEMORY;
}
status_t error = fAudioStream->file->InitCheck();
if (error != B_OK)
return error;

View File

@ -27,9 +27,6 @@
#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
// cf. http://unicode.org/charts/PDF/U2190.pdf
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 kRedInputColor = { 255, 152, 152, 255 };

View File

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

View File

@ -92,12 +92,6 @@ All rights reserved.
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 kSwitchToQueryTemplate = 'swqt';
const uint32 kRunSaveAsTemplatePanel = 'svtm';
@ -217,7 +211,7 @@ MoreOptionsStruct::QueryTemporary(const BNode* node)
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_AUTO_UPDATE_SIZE_LIMITS),
fFile(TryOpening(newRef)),

View File

@ -39,8 +39,6 @@ All rights reserved.
#include "TaskLoop.h"
const float kTaskOverhead = 0.01f;
// this should really be specified by the task itself
const float kIdleTreshold = 0.15f;
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 BRect kDefaultFrame(40, 40, 695, 350);
static const int32 sDefaultQueryTemplateCount = 3;
struct ColumnData

View File

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

View File

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

View File

@ -29,9 +29,6 @@
using namespace BPrivate;
const float kMaxTabWidth = 165.;
bool
StackingEventHandler::HandleMessage(SATWindow* sender,
BPrivate::LinkReceiver& link, BPrivate::LinkSender& reply)
@ -206,13 +203,13 @@ SATStacking::SATStacking(SATWindow* window)
fSATWindow(window),
fStackingParent(NULL)
{
}
SATStacking::~SATStacking()
{
}

View File

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