mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove unnecessary cpp files
This commit is contained in:
parent
1d8e738499
commit
d591bcc09c
25 changed files with 51 additions and 537 deletions
|
|
@ -27,8 +27,6 @@ web_files = [
|
|||
"http_client_web.cpp",
|
||||
"javascript_bridge_singleton.cpp",
|
||||
"web_main.cpp",
|
||||
"ip_web.cpp",
|
||||
"net_socket_web.cpp",
|
||||
"os_web.cpp",
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -1,48 +0,0 @@
|
|||
/**************************************************************************/
|
||||
/* ip_web.cpp */
|
||||
/**************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* https://godotengine.org */
|
||||
/**************************************************************************/
|
||||
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
|
||||
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
|
||||
/* */
|
||||
/* Permission is hereby granted, free of charge, to any person obtaining */
|
||||
/* a copy of this software and associated documentation files (the */
|
||||
/* "Software"), to deal in the Software without restriction, including */
|
||||
/* without limitation the rights to use, copy, modify, merge, publish, */
|
||||
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
||||
/* permit persons to whom the Software is furnished to do so, subject to */
|
||||
/* the following conditions: */
|
||||
/* */
|
||||
/* The above copyright notice and this permission notice shall be */
|
||||
/* included in all copies or substantial portions of the Software. */
|
||||
/* */
|
||||
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
||||
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
||||
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
|
||||
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
||||
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
||||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#include "ip_web.h"
|
||||
|
||||
void IPWeb::_resolve_hostname(List<IPAddress> &r_addresses, const String &p_hostname, Type p_type) const {
|
||||
}
|
||||
|
||||
void IPWeb::get_local_interfaces(HashMap<String, Interface_Info> *r_interfaces) const {
|
||||
}
|
||||
|
||||
void IPWeb::make_default() {
|
||||
_create = _create_web;
|
||||
}
|
||||
|
||||
IP *IPWeb::_create_web() {
|
||||
return memnew(IPWeb);
|
||||
}
|
||||
|
||||
IPWeb::IPWeb() {
|
||||
}
|
||||
|
|
@ -35,14 +35,17 @@
|
|||
class IPWeb : public IP {
|
||||
GDCLASS(IPWeb, IP);
|
||||
|
||||
virtual void _resolve_hostname(List<IPAddress> &r_addresses, const String &p_hostname, Type p_type = TYPE_ANY) const override;
|
||||
virtual void _resolve_hostname(List<IPAddress> &r_addresses, const String &p_hostname, Type p_type = TYPE_ANY) const override {}
|
||||
|
||||
private:
|
||||
static IP *_create_web();
|
||||
static IP *_create_web() {
|
||||
return memnew(IPWeb);
|
||||
}
|
||||
|
||||
public:
|
||||
virtual void get_local_interfaces(HashMap<String, Interface_Info> *r_interfaces) const override;
|
||||
virtual void get_local_interfaces(HashMap<String, Interface_Info> *r_interfaces) const override {}
|
||||
|
||||
static void make_default();
|
||||
IPWeb();
|
||||
static void make_default() {
|
||||
_create = _create_web;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,39 +0,0 @@
|
|||
/**************************************************************************/
|
||||
/* net_socket_web.cpp */
|
||||
/**************************************************************************/
|
||||
/* This file is part of: */
|
||||
/* GODOT ENGINE */
|
||||
/* https://godotengine.org */
|
||||
/**************************************************************************/
|
||||
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
|
||||
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
|
||||
/* */
|
||||
/* Permission is hereby granted, free of charge, to any person obtaining */
|
||||
/* a copy of this software and associated documentation files (the */
|
||||
/* "Software"), to deal in the Software without restriction, including */
|
||||
/* without limitation the rights to use, copy, modify, merge, publish, */
|
||||
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
||||
/* permit persons to whom the Software is furnished to do so, subject to */
|
||||
/* the following conditions: */
|
||||
/* */
|
||||
/* The above copyright notice and this permission notice shall be */
|
||||
/* included in all copies or substantial portions of the Software. */
|
||||
/* */
|
||||
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
||||
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
||||
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
|
||||
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
||||
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
||||
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/**************************************************************************/
|
||||
|
||||
#include "net_socket_web.h"
|
||||
|
||||
NetSocket *NetSocketWeb::_create_func() {
|
||||
return memnew(NetSocketWeb);
|
||||
}
|
||||
|
||||
void NetSocketWeb::make_default() {
|
||||
_create = _create_func;
|
||||
}
|
||||
|
|
@ -36,10 +36,14 @@
|
|||
|
||||
class NetSocketWeb : public NetSocket {
|
||||
protected:
|
||||
static NetSocket *_create_func();
|
||||
static NetSocket *_create_func() {
|
||||
return memnew(NetSocketWeb);
|
||||
}
|
||||
|
||||
public:
|
||||
static void make_default();
|
||||
static void make_default() {
|
||||
_create = _create_func;
|
||||
}
|
||||
|
||||
virtual Error open(Type p_sock_type, IP::Type &ip_type) override { return ERR_UNAVAILABLE; }
|
||||
virtual void close() override {}
|
||||
|
|
@ -64,6 +68,4 @@ public:
|
|||
virtual void set_reuse_address_enabled(bool p_enabled) override {}
|
||||
virtual Error join_multicast_group(const IPAddress &p_multi_address, const String &p_if_name) override { return ERR_UNAVAILABLE; }
|
||||
virtual Error leave_multicast_group(const IPAddress &p_multi_address, const String &p_if_name) override { return ERR_UNAVAILABLE; }
|
||||
|
||||
NetSocketWeb() {}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue