Remove unused variables
authorNicholas Ormrod <njormrod@fb.com>
Fri, 17 Apr 2015 00:32:30 +0000 (17:32 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:44:44 +0000 (16:44 -0700)
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

folly/experimental/FunctionScheduler.cpp
folly/experimental/JSONSchema.cpp

index 78b0aeeb9f378cdbafc9a94bd796e8edba14368b..9a12256ffb84020716336bcdcdb2cf02cd3c4962 100644 (file)
@@ -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) {
index 7e0e49970f5d7e7b00cccc731e97b7ee39f21b44..6978cf696f9f6610711ff055ccedef9b7dcf781d 100644 (file)
@@ -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);
         }