You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Dead code tells no tales
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
#include "visual_server.h"
|
||||
|
||||
#include "method_bind_ext.gen.inc"
|
||||
#include "project_settings.h"
|
||||
|
||||
@@ -39,25 +40,6 @@ VisualServer *VisualServer::get_singleton() {
|
||||
return singleton;
|
||||
}
|
||||
|
||||
PoolVector<String> VisualServer::_shader_get_param_list(RID p_shader) const {
|
||||
|
||||
//remove at some point
|
||||
|
||||
PoolVector<String> pl;
|
||||
|
||||
#if 0
|
||||
List<StringName> params;
|
||||
shader_get_param_list(p_shader,¶ms);
|
||||
|
||||
|
||||
for(List<StringName>::Element *E=params.front();E;E=E->next()) {
|
||||
|
||||
pl.push_back(E->get());
|
||||
}
|
||||
#endif
|
||||
return pl;
|
||||
}
|
||||
|
||||
VisualServer *VisualServer::create() {
|
||||
|
||||
ERR_FAIL_COND_V(singleton, NULL);
|
||||
@@ -1466,7 +1448,6 @@ void VisualServer::_camera_set_orthogonal(RID p_camera, float p_size, float p_z_
|
||||
|
||||
void VisualServer::mesh_add_surface_from_mesh_data(RID p_mesh, const Geometry::MeshData &p_mesh_data) {
|
||||
|
||||
#if 1
|
||||
PoolVector<Vector3> vertices;
|
||||
PoolVector<Vector3> normals;
|
||||
|
||||
@@ -1491,24 +1472,6 @@ void VisualServer::mesh_add_surface_from_mesh_data(RID p_mesh, const Geometry::M
|
||||
d[ARRAY_VERTEX] = vertices;
|
||||
d[ARRAY_NORMAL] = normals;
|
||||
mesh_add_surface_from_arrays(p_mesh, PRIMITIVE_TRIANGLES, d);
|
||||
|
||||
#else
|
||||
|
||||
PoolVector<Vector3> vertices;
|
||||
|
||||
for (int i = 0; i < p_mesh_data.edges.size(); i++) {
|
||||
|
||||
const Geometry::MeshData::Edge &f = p_mesh_data.edges[i];
|
||||
vertices.push_back(p_mesh_data.vertices[f.a]);
|
||||
vertices.push_back(p_mesh_data.vertices[f.b]);
|
||||
}
|
||||
|
||||
Array d;
|
||||
d.resize(VS::ARRAY_MAX);
|
||||
d[ARRAY_VERTEX] = vertices;
|
||||
mesh_add_surface(p_mesh, PRIMITIVE_LINES, d);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
void VisualServer::mesh_add_surface_from_planes(RID p_mesh, const PoolVector<Plane> &p_planes) {
|
||||
|
||||
Reference in New Issue
Block a user