mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
Delete some dead code
This commit is contained in:
@ -62,11 +62,6 @@ public:
|
||||
return EAT_BOOL;
|
||||
}
|
||||
|
||||
const wchar_t* getTypeString() const override
|
||||
{
|
||||
return L"bool";
|
||||
}
|
||||
|
||||
bool BoolValue;
|
||||
};
|
||||
|
||||
@ -106,11 +101,6 @@ public:
|
||||
return EAT_INT;
|
||||
}
|
||||
|
||||
const wchar_t* getTypeString() const override
|
||||
{
|
||||
return L"int";
|
||||
}
|
||||
|
||||
s32 Value;
|
||||
};
|
||||
|
||||
@ -150,11 +140,6 @@ public:
|
||||
return EAT_FLOAT;
|
||||
}
|
||||
|
||||
const wchar_t* getTypeString() const override
|
||||
{
|
||||
return L"float";
|
||||
}
|
||||
|
||||
f32 Value;
|
||||
};
|
||||
|
||||
|
@ -172,26 +172,6 @@ E_ATTRIBUTE_TYPE CAttributes::getAttributeType(s32 index) const
|
||||
return Attributes[index]->getType();
|
||||
}
|
||||
|
||||
//! Returns the type of an attribute
|
||||
const wchar_t* CAttributes::getAttributeTypeString(const c8* attributeName, const wchar_t* defaultNotFound) const
|
||||
{
|
||||
const IAttribute* att = getAttributeP(attributeName);
|
||||
if (att)
|
||||
return att->getTypeString();
|
||||
else
|
||||
return defaultNotFound;
|
||||
}
|
||||
|
||||
//! Returns attribute type string by index.
|
||||
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
||||
const wchar_t* CAttributes::getAttributeTypeString(s32 index, const wchar_t* defaultNotFound) const
|
||||
{
|
||||
if ((u32)index >= Attributes.size())
|
||||
return defaultNotFound;
|
||||
|
||||
return Attributes[index]->getTypeString();
|
||||
}
|
||||
|
||||
//! Gets an attribute as integer value
|
||||
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
||||
s32 CAttributes::getAttributeAsInt(s32 index) const
|
||||
|
@ -41,15 +41,6 @@ public:
|
||||
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
||||
E_ATTRIBUTE_TYPE getAttributeType(s32 index) const override;
|
||||
|
||||
//! Returns the type string of the attribute
|
||||
//! \param attributeName: String for the attribute type
|
||||
//! \param defaultNotFound Value returned when attributeName was not found
|
||||
const wchar_t* getAttributeTypeString(const c8* attributeName, const wchar_t* defaultNotFound = L"unknown") const override;
|
||||
|
||||
//! Returns the type string of the attribute by index.
|
||||
//! \param index: Index value, must be between 0 and getAttributeCount()-1.
|
||||
const wchar_t* getAttributeTypeString(s32 index, const wchar_t* defaultNotFound = L"unknown") const override;
|
||||
|
||||
//! Returns if an attribute with a name exists
|
||||
bool existsAttribute(const c8* attributeName) const override;
|
||||
|
||||
|
@ -56,7 +56,6 @@ public:
|
||||
core::stringc Name;
|
||||
|
||||
virtual E_ATTRIBUTE_TYPE getType() const = 0;
|
||||
virtual const wchar_t* getTypeString() const = 0;
|
||||
};
|
||||
|
||||
} // end namespace io
|
||||
|
@ -1,26 +0,0 @@
|
||||
// Copyright (C) 2002-2012 Nikolaus Gebhardt
|
||||
// This file is part of the "Irrlicht Engine".
|
||||
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "vector2d.h"
|
||||
|
||||
typedef signed short TZBufferType;
|
||||
|
||||
namespace irr
|
||||
{
|
||||
namespace video
|
||||
{
|
||||
|
||||
struct S2DVertex
|
||||
{
|
||||
core::vector2d<s32> Pos; // position
|
||||
core::vector2d<s32> TCoords; // texture coordinates
|
||||
TZBufferType ZValue; // zvalue
|
||||
u16 Color;
|
||||
};
|
||||
|
||||
|
||||
} // end namespace video
|
||||
} // end namespace irr
|
Reference in New Issue
Block a user