Remove useless function declarations

This patch removes the function declarations which don't have their
function bodies.

BUG=None

Change-Id: Id16c2a225319331cdbc3a827ebbabf58c16e1dfd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/53140
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
This commit is contained in:
Jiawei Shao 2021-06-03 07:42:15 +00:00 committed by Dawn LUCI CQ
parent 857eac2ade
commit b6c54a6ec2
4 changed files with 0 additions and 11 deletions

View File

@ -60,12 +60,6 @@ namespace dawn_native {
const ImageCopyTexture& imageCopyTexture, const ImageCopyTexture& imageCopyTexture,
const Extent3D& copySize); const Extent3D& copySize);
MaybeError ValidateRowsPerImage(const Format& format,
uint32_t rowsPerImage,
uint32_t copyHeight);
MaybeError ValidateBytesPerRow(const Format& format,
const Extent3D& copySize,
uint32_t bytesPerRow);
MaybeError ValidateCopySizeFitsInBuffer(const Ref<BufferBase>& buffer, MaybeError ValidateCopySizeFitsInBuffer(const Ref<BufferBase>& buffer,
uint64_t offset, uint64_t offset,
uint64_t size); uint64_t size);

View File

@ -32,8 +32,6 @@ namespace dawn_native {
static ComputePipelineBase* MakeError(DeviceBase* device); static ComputePipelineBase* MakeError(DeviceBase* device);
const EntryPointMetadata& GetMetadata() const;
// Functors necessary for the unordered_set<ComputePipelineBase*>-based cache. // Functors necessary for the unordered_set<ComputePipelineBase*>-based cache.
struct EqualityFunc { struct EqualityFunc {
bool operator()(const ComputePipelineBase* a, const ComputePipelineBase* b) const; bool operator()(const ComputePipelineBase* a, const ComputePipelineBase* b) const;

View File

@ -54,8 +54,6 @@ namespace dawn_native {
public: public:
OldSwapChainBase(DeviceBase* device, const SwapChainDescriptor* descriptor); OldSwapChainBase(DeviceBase* device, const SwapChainDescriptor* descriptor);
static SwapChainBase* MakeError(DeviceBase* device);
// Dawn API // Dawn API
void APIConfigure(wgpu::TextureFormat format, void APIConfigure(wgpu::TextureFormat format,
wgpu::TextureUsage allowedUsage, wgpu::TextureUsage allowedUsage,

View File

@ -29,7 +29,6 @@ namespace dawn_native { namespace vulkan {
// Global information - gathered before the instance is created // Global information - gathered before the instance is created
struct VulkanGlobalKnobs { struct VulkanGlobalKnobs {
bool HasLayer(VulkanLayer layer) const;
VulkanLayerSet layers; VulkanLayerSet layers;
ityp::array<VulkanLayer, InstanceExtSet, static_cast<uint32_t>(VulkanLayer::EnumCount)> ityp::array<VulkanLayer, InstanceExtSet, static_cast<uint32_t>(VulkanLayer::EnumCount)>
layerExtensions; layerExtensions;