From c73572182c8b32e4bfc0a845594674fbf9acd1ca Mon Sep 17 00:00:00 2001 From: "mseaborn@chromium.org" Date: Thu, 6 Mar 2014 14:17:38 +0000 Subject: NaCl SDK: Remove more unused variables in examples PNaCl is being upgraded to Clang 3.4, which now warns about unused declarations inside anonymous namespaces. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3757 TEST=none R=binji@chromium.org Review URL: https://codereview.chromium.org/180953007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255341 0039d316-1c4b-4281-b951-d872f2087c98 --- native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc | 2 -- native_client_sdk/src/examples/demo/earth/earth.cc | 4 ---- 2 files changed, 6 deletions(-) diff --git a/native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc b/native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc index 9291036..052c910 100644 --- a/native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc +++ b/native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc @@ -25,8 +25,6 @@ static const char kDeleteCommand[] = "Delete"; static const char kHasKeyCommand[] = "HasKey"; static const char kGetKeysCommand[] = "GetKeys"; -static const char kCommandKey[] = "cmd"; - pp::Var MakeResult(const char* cmd, const pp::Var& value, const pp::Var& newDictionary) { pp::VarDictionary dict; diff --git a/native_client_sdk/src/examples/demo/earth/earth.cc b/native_client_sdk/src/examples/demo/earth/earth.cc index eef5c38..420448b 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; -- cgit v1.1