Skip to content

Commit 08c0eba

Browse files
committed
Clean up
1 parent 685507e commit 08c0eba

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

include/vsg/core/Data.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -233,26 +233,6 @@ namespace vsg
233233
void _clear();
234234

235235
ModifiedCount _modifiedCount;
236-
237-
#if 1
238-
public:
239-
/// deprecated: provided for backwards compatibility, use Properties instead.
240-
using Layout = Properties;
241-
242-
/// deprecated: use data->properties = properties instead.
243-
void setLayout(const Layout& layout)
244-
{
245-
VkFormat previous_format = properties.format; // temporary hack to keep applications that call setFormat(..) before setLayout(..) working
246-
uint32_t previous_stride = properties.stride;
247-
properties = layout;
248-
if (properties.format == 0 && previous_format != 0) properties.format = previous_format; // temporary hack to keep existing applications working
249-
if (properties.stride == 0 && previous_stride != 0) properties.stride = previous_stride; // make sure the layout has a valid stride.
250-
}
251-
/// deprecated: use data->properties
252-
Layout& getLayout() { return properties; }
253-
/// deprecated: use data->properties
254-
const Layout& getLayout() const { return properties; }
255-
#endif
256236
};
257237
VSG_type_name(vsg::Data);
258238

0 commit comments

Comments
 (0)