From: Nicholas Ormrod <njormrod@fb.com>
Date: Fri, 17 Apr 2015 00:32:30 +0000 (-0700)
Subject: Remove unused variables
X-Git-Tag: v0.36.0~28
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f8ff6ac066f98190941687aca357cba0985daf9c;p=folly.git

Remove unused variables

Summary:
This broke the HHVM (on ubuntu at least)

Test Plan:
compiled it

Signed-off-by: Nicholas Ormrod <njormrod@fb.com>

Reviewed By: andrei.alexandrescu@fb.com

Subscribers: folly-diffs@, yfeldblum, chalfant

FB internal diff: D1999341

Tasks: 6783581

Signature: t1:1999341:1429219016:235beef7522c4ada020eedf4f0a2ae200e94b7c8
---

diff --git a/folly/experimental/FunctionScheduler.cpp b/folly/experimental/FunctionScheduler.cpp
index 78b0aeeb..9a12256f 100644
--- a/folly/experimental/FunctionScheduler.cpp
+++ b/folly/experimental/FunctionScheduler.cpp
@@ -100,7 +100,6 @@ void FunctionScheduler::addFunctionInternal(const std::function<void()>& cb,
 }
 
 bool FunctionScheduler::cancelFunction(StringPiece nameID) {
-  bool retValue = false;
   std::unique_lock<std::mutex> l(mutex_);
 
   if (currentFunction_ && currentFunction_->name == nameID) {
diff --git a/folly/experimental/JSONSchema.cpp b/folly/experimental/JSONSchema.cpp
index 7e0e4997..6978cf69 100644
--- a/folly/experimental/JSONSchema.cpp
+++ b/folly/experimental/JSONSchema.cpp
@@ -351,7 +351,6 @@ struct RequiredValidator final : IValidator {
                                  const dynamic& value) const override {
     if (value.isObject()) {
       for (const auto& prop : properties_) {
-        auto* p = value.get_ptr(prop);
         if (!value.get_ptr(prop)) {
           return makeError("to have property", prop, value);
         }