diff options
author | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 14:17:38 +0000 |
---|---|---|
committer | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 14:17:38 +0000 |
commit | c73572182c8b32e4bfc0a845594674fbf9acd1ca (patch) | |
tree | 7f762de0beccccda591e5a90e0d61213fba65217 /native_client_sdk | |
parent | 370c01e4415b68dd312f6e9b9bd3baaa8861f788 (diff) | |
download | chromium_src-c73572182c8b32e4bfc0a845594674fbf9acd1ca.zip chromium_src-c73572182c8b32e4bfc0a845594674fbf9acd1ca.tar.gz chromium_src-c73572182c8b32e4bfc0a845594674fbf9acd1ca.tar.bz2 |
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
Diffstat (limited to 'native_client_sdk')
-rw-r--r-- | native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc | 2 | ||||
-rw-r--r-- | native_client_sdk/src/examples/demo/earth/earth.cc | 4 |
2 files changed, 0 insertions, 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; |