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

Unified Diff: native_client_sdk/src/examples/demo/earth/earth.cc

Issue 180953007: NaCl SDK: Remove more unused variables in examples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo test-only changes Created 6 years, 10 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 | « native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/demo/earth/earth.cc
diff --git a/native_client_sdk/src/examples/demo/earth/earth.cc b/native_client_sdk/src/examples/demo/earth/earth.cc
index eef5c38dcdd472a2fd664f542ec238639c7f5ab7..420448bb1f476dec109ad7c856286b055892feed 100644
--- a/native_client_sdk/src/examples/demo/earth/earth.cc
+++ b/native_client_sdk/src/examples/demo/earth/earth.cc
@@ -32,7 +32,6 @@ using namespace sdk_util; // For sdk_util::ThreadPool
// Global properties used to setup Earth demo.
namespace {
-const float kHugeZ = 1.0e38f;
const float kPI = M_PI;
const float kTwoPI = kPI * 2.0f;
const float kOneOverPI = 1.0f / kPI;
@@ -45,7 +44,6 @@ const float kZoomMax = 50.0f;
const float kWheelSpeed = 2.0f;
const float kLightMin = 0.0f;
const float kLightMax = 2.0f;
-const int kFrameTimeBufferSize = 512;
// Timer helper for benchmarking. Returns seconds elapsed since program start,
// as a double.
@@ -147,8 +145,6 @@ inline const float AsFloat(const int i) {
}
const long int kOneAsInteger = AsInteger(1.0f);
-const float kScaleUp = float(0x00800000);
-const float kScaleDown = 1.0f / kScaleUp;
inline float inline_quick_sqrt(float x) {
int i;
« no previous file with comments | « native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698