summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--native_client_sdk/src/examples/api/var_dictionary/var_dictionary.cc2
-rw-r--r--native_client_sdk/src/examples/demo/earth/earth.cc4
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;