From f8ff6ac066f98190941687aca357cba0985daf9c Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Thu, 16 Apr 2015 17:32:30 -0700 Subject: [PATCH] Remove unused variables Summary: This broke the HHVM (on ubuntu at least) Test Plan: compiled it Signed-off-by: Nicholas Ormrod 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 | 1 - folly/experimental/JSONSchema.cpp | 1 - 2 files changed, 2 deletions(-) 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& cb, } bool FunctionScheduler::cancelFunction(StringPiece nameID) { - bool retValue = false; std::unique_lock 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); } -- 2.34.1