Cleanup unused engine code
This commit is contained in:
parent
90bdba576a
commit
2c048ea164
56 changed files with 4 additions and 615 deletions
|
|
@ -151,11 +151,6 @@ void PacketPeer::_bind_methods() {
|
|||
|
||||
/***************/
|
||||
|
||||
void PacketPeerStream::_set_stream_peer(REF p_peer) {
|
||||
ERR_FAIL_COND_MSG(p_peer.is_null(), "It's not a reference to a valid Resource object.");
|
||||
set_stream_peer(p_peer);
|
||||
}
|
||||
|
||||
void PacketPeerStream::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_stream_peer", "peer"), &PacketPeerStream::set_stream_peer);
|
||||
ClassDB::bind_method(D_METHOD("get_stream_peer"), &PacketPeerStream::get_stream_peer);
|
||||
|
|
@ -263,10 +258,8 @@ int PacketPeerStream::get_max_packet_size() const {
|
|||
}
|
||||
|
||||
void PacketPeerStream::set_stream_peer(const Ref<StreamPeer> &p_peer) {
|
||||
//ERR_FAIL_COND(p_peer.is_null());
|
||||
|
||||
if (p_peer.ptr() != peer.ptr()) {
|
||||
ring_buffer.advance_read(ring_buffer.data_left()); // reset the ring buffer
|
||||
ring_buffer.advance_read(ring_buffer.data_left()); // Reset the ring buffer.
|
||||
}
|
||||
|
||||
peer = p_peer;
|
||||
|
|
|
|||
|
|
@ -86,7 +86,6 @@ class PacketPeerStream : public PacketPeer {
|
|||
Error _poll_buffer() const;
|
||||
|
||||
protected:
|
||||
void _set_stream_peer(REF p_peer);
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -192,10 +192,6 @@ bool ResourceFormatImporter::recognize_path(const String &p_path, const String &
|
|||
return FileAccess::exists(p_path + ".import");
|
||||
}
|
||||
|
||||
bool ResourceFormatImporter::can_be_imported(const String &p_path) const {
|
||||
return ResourceFormatLoader::recognize_path(p_path);
|
||||
}
|
||||
|
||||
int ResourceFormatImporter::get_import_order(const String &p_path) const {
|
||||
Ref<ResourceImporter> importer;
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ public:
|
|||
virtual String get_import_group_file(const String &p_path) const;
|
||||
virtual bool exists(const String &p_path) const;
|
||||
|
||||
virtual bool can_be_imported(const String &p_path) const;
|
||||
virtual int get_import_order(const String &p_path) const;
|
||||
|
||||
String get_internal_resource_path(const String &p_path) const;
|
||||
|
|
|
|||
|
|
@ -72,39 +72,6 @@ Vector3 Vector3::snapped(Vector3 p_val) const {
|
|||
return v;
|
||||
}
|
||||
|
||||
Vector3 Vector3::cubic_interpolaten(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, real_t p_weight) const {
|
||||
Vector3 p0 = p_pre_a;
|
||||
Vector3 p1 = *this;
|
||||
Vector3 p2 = p_b;
|
||||
Vector3 p3 = p_post_b;
|
||||
|
||||
{
|
||||
//normalize
|
||||
|
||||
real_t ab = p0.distance_to(p1);
|
||||
real_t bc = p1.distance_to(p2);
|
||||
real_t cd = p2.distance_to(p3);
|
||||
|
||||
if (ab > 0) {
|
||||
p0 = p1 + (p0 - p1) * (bc / ab);
|
||||
}
|
||||
if (cd > 0) {
|
||||
p3 = p2 + (p3 - p2) * (bc / cd);
|
||||
}
|
||||
}
|
||||
|
||||
real_t t = p_weight;
|
||||
real_t t2 = t * t;
|
||||
real_t t3 = t2 * t;
|
||||
|
||||
Vector3 out;
|
||||
out = 0.5 * ((p1 * 2.0) +
|
||||
(-p0 + p2) * t +
|
||||
(2.0 * p0 - 5.0 * p1 + 4.0 * p2 - p3) * t2 +
|
||||
(-p0 + 3.0 * p1 - 3.0 * p2 + p3) * t3);
|
||||
return out;
|
||||
}
|
||||
|
||||
Vector3 Vector3::cubic_interpolate(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, real_t p_weight) const {
|
||||
Vector3 p0 = p_pre_a;
|
||||
Vector3 p1 = *this;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,6 @@ struct Vector3 {
|
|||
_FORCE_INLINE_ Vector3 lerp(const Vector3 &p_to, real_t p_weight) const;
|
||||
_FORCE_INLINE_ Vector3 slerp(const Vector3 &p_to, real_t p_weight) const;
|
||||
Vector3 cubic_interpolate(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, real_t p_weight) const;
|
||||
Vector3 cubic_interpolaten(const Vector3 &p_b, const Vector3 &p_pre_a, const Vector3 &p_post_b, real_t p_weight) const;
|
||||
Vector3 move_toward(const Vector3 &p_to, const real_t p_delta) const;
|
||||
|
||||
_FORCE_INLINE_ Vector3 cross(const Vector3 &p_b) const;
|
||||
|
|
|
|||
|
|
@ -823,10 +823,6 @@ void Object::property_list_changed_notify() {
|
|||
_change_notify();
|
||||
}
|
||||
|
||||
void Object::cancel_delete() {
|
||||
_predelete_ok = true;
|
||||
}
|
||||
|
||||
void Object::set_script_and_instance(const Variant &p_script, ScriptInstance *p_instance) {
|
||||
//this function is not meant to be used in any of these ways
|
||||
ERR_FAIL_COND(p_script.is_null());
|
||||
|
|
|
|||
|
|
@ -525,8 +525,6 @@ protected:
|
|||
static void get_valid_parents_static(List<String> *p_parents);
|
||||
static void _get_valid_parents_static(List<String> *p_parents);
|
||||
|
||||
void cancel_delete();
|
||||
|
||||
virtual void _changed_callback(Object *p_changed, const char *p_prop);
|
||||
|
||||
//Variant _call_bind(const StringName& p_name, const Variant& p_arg1 = Variant(), const Variant& p_arg2 = Variant(), const Variant& p_arg3 = Variant(), const Variant& p_arg4 = Variant());
|
||||
|
|
|
|||
|
|
@ -274,8 +274,6 @@ class ScriptCodeCompletionCache {
|
|||
static ScriptCodeCompletionCache *singleton;
|
||||
|
||||
public:
|
||||
virtual RES get_cached_resource(const String &p_path) = 0;
|
||||
|
||||
static ScriptCodeCompletionCache *get_singleton() { return singleton; }
|
||||
|
||||
ScriptCodeCompletionCache();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue