Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: ash/shelf/shelf_constants.cc

Issue 2823133002: Clean up some ash constants. (Closed)
Patch Set: ditto Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shelf/shelf_constants.h ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_constants.cc
diff --git a/ash/shelf/shelf_constants.cc b/ash/shelf/shelf_constants.cc
deleted file mode 100644
index 1575a68d4e22a96b9261f96e509b6fe1bd07ba3c..0000000000000000000000000000000000000000
--- a/ash/shelf/shelf_constants.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/shelf/shelf_constants.h"
-
-#include "base/logging.h"
-
-namespace ash {
-
-int GetShelfConstant(ShelfConstant shelf_constant) {
- const int kShelfSize[] = {47, 48, 48};
- const int kShelfInsetsForAutoHide[] = {3, 0, 0};
-
- // TODO(estade): clean this up --- remove unneeded constants and reduce
- // remaining arrays to a single constant.
- const int mode = 1;
- switch (shelf_constant) {
- case SHELF_SIZE:
- return kShelfSize[mode];
- case SHELF_INSETS_FOR_AUTO_HIDE:
- return kShelfInsetsForAutoHide[mode];
- }
- NOTREACHED();
- return 0;
-}
-
-} // namespace ash
« no previous file with comments | « ash/shelf/shelf_constants.h ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698