From e5ba9f67d3b8ef97fa27e40ec8599d8ecc11fdf8 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Mon, 20 Jan 2020 05:46:03 -0800 Subject: [PATCH] Fabric: delete LocalData.h Summary: LocalData isn't used by any components. We've moved towards State. Changelog: [internal] Reviewed By: shergin Differential Revision: D19250738 fbshipit-source-id: 38ab19f63e4a249748555e9181141340729b4510 --- .../fabric/core/shadownode/LocalData.h | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 ReactCommon/fabric/core/shadownode/LocalData.h diff --git a/ReactCommon/fabric/core/shadownode/LocalData.h b/ReactCommon/fabric/core/shadownode/LocalData.h deleted file mode 100644 index cf3aead2176..00000000000 --- a/ReactCommon/fabric/core/shadownode/LocalData.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#pragma once - -#include -#include -#include - -namespace facebook { -namespace react { - -class LocalData; - -using SharedLocalData = std::shared_ptr; - -/* - * Abstract class for any kind of concrete pieces of local data specific for - * some kinds of `ShadowNode`s. - * LocalData might be used to communicate some information between `ShadowNode`s - * and native component views. - * All `LocalData` objects *must* be immutable (sealed) when they became - * a part of the shadow tree. - */ -class LocalData : public Sealable, public DebugStringConvertible { - public: - using Shared = std::shared_ptr; - - virtual ~LocalData() = default; - - virtual folly::dynamic getDynamic() const { - return folly::dynamic::object(); - } -}; - -} // namespace react -} // namespace facebook