Remove unnecessary #includes to reduce dependencies

Reviewed By: davidaurelio

Differential Revision: D7803909

fbshipit-source-id: 2ccafdbfcb786c4c5f703714fb0c92cda1026cef
This commit is contained in:
Marc Horowitz 2018-05-09 22:01:34 -07:00 committed by Facebook Github Bot
parent d11fdcfb93
commit ef258b0106
4 changed files with 6 additions and 10 deletions

View File

@ -1,7 +1,6 @@
// Copyright 2004-present Facebook. All Rights Reserved.
#include "JInspector.h"
#include <jschelpers/JavaScriptCore.h>
#ifdef WITH_INSPECTOR

View File

@ -2,14 +2,9 @@
#include <string>
#include <jschelpers/JSCHelpers.h>
#include <cxxreact/JSCExecutor.h>
#include <cxxreact/Platform.h>
#include <fb/fbjni.h>
#include <fb/glog_init.h>
#include <fb/log.h>
#include <folly/dynamic.h>
#include <jschelpers/Value.h>
#include "AndroidJSCFactory.h"
#include "CatalystInstanceImpl.h"

View File

@ -7,12 +7,11 @@
#include <stdexcept>
#include <folly/Conv.h>
#include <jschelpers/noncopyable.h>
namespace facebook {
namespace react {
class JSModulesUnbundle : noncopyable {
class JSModulesUnbundle {
/**
* Represents the set of JavaScript modules that the application consists of.
* The source code of each module can be retrieved by module ID.
@ -31,8 +30,12 @@ public:
std::string name;
std::string code;
};
JSModulesUnbundle() {}
virtual ~JSModulesUnbundle() {}
virtual Module getModule(uint32_t moduleId) const = 0;
private:
JSModulesUnbundle(const JSModulesUnbundle&) = delete;
};
}

View File

@ -9,7 +9,6 @@
#include <utility>
#include <cxxreact/JSModulesUnbundle.h>
#include <jschelpers/noncopyable.h>
#ifndef RN_EXPORT
#define RN_EXPORT __attribute__((visibility("default")))
@ -18,7 +17,7 @@
namespace facebook {
namespace react {
class RN_EXPORT RAMBundleRegistry : noncopyable {
class RN_EXPORT RAMBundleRegistry {
public:
constexpr static uint32_t MAIN_BUNDLE_ID = 0;