mirror of https://github.com/AxioDL/metaforce.git
Database: Use [[maybe_unused]] instead of (void)
Same behavior, but without the need to duplicate the variable name.
This commit is contained in:
parent
1fb18dbf26
commit
93ec114e0c
|
@ -62,7 +62,7 @@ class IDataSpec {
|
|||
|
||||
public:
|
||||
IDataSpec(const DataSpecEntry* specEntry) : m_specEntry(specEntry) {}
|
||||
virtual ~IDataSpec() {}
|
||||
virtual ~IDataSpec() = default;
|
||||
using FCookProgress = std::function<void(const SystemChar*)>;
|
||||
|
||||
/**
|
||||
|
@ -91,43 +91,33 @@ public:
|
|||
|
||||
virtual void setThreadProject() {}
|
||||
|
||||
virtual bool canExtract(const ExtractPassInfo& info, std::vector<ExtractReport>& reps) {
|
||||
(void)info;
|
||||
(void)reps;
|
||||
virtual bool canExtract([[maybe_unused]] const ExtractPassInfo& info,
|
||||
[[maybe_unused]] std::vector<ExtractReport>& reps) {
|
||||
LogModule.report(logvisor::Error, fmt("not implemented"));
|
||||
return false;
|
||||
}
|
||||
virtual void doExtract(const ExtractPassInfo& info, const MultiProgressPrinter& progress) {
|
||||
(void)info;
|
||||
(void)progress;
|
||||
}
|
||||
virtual void doExtract([[maybe_unused]] const ExtractPassInfo& info,
|
||||
[[maybe_unused]] const MultiProgressPrinter& progress) {}
|
||||
|
||||
virtual bool canCook(const ProjectPath& path, blender::Token& btok) {
|
||||
(void)path;
|
||||
virtual bool canCook([[maybe_unused]] const ProjectPath& path, [[maybe_unused]] blender::Token& btok) {
|
||||
LogModule.report(logvisor::Error, fmt("not implemented"));
|
||||
return false;
|
||||
}
|
||||
virtual const DataSpecEntry* overrideDataSpec(const ProjectPath& path,
|
||||
const Database::DataSpecEntry* oldEntry) const {
|
||||
(void)path;
|
||||
virtual const DataSpecEntry* overrideDataSpec([[maybe_unused]] const ProjectPath& path,
|
||||
const DataSpecEntry* oldEntry) const {
|
||||
return oldEntry;
|
||||
}
|
||||
virtual void doCook(const ProjectPath& path, const ProjectPath& cookedPath, bool fast, blender::Token& btok,
|
||||
FCookProgress progress) {
|
||||
(void)path;
|
||||
(void)cookedPath;
|
||||
(void)fast;
|
||||
(void)progress;
|
||||
}
|
||||
virtual void doCook([[maybe_unused]] const ProjectPath& path, [[maybe_unused]] const ProjectPath& cookedPath,
|
||||
[[maybe_unused]] bool fast, [[maybe_unused]] blender::Token& btok,
|
||||
[[maybe_unused]] FCookProgress progress) {}
|
||||
|
||||
virtual bool canPackage(const ProjectPath& path) {
|
||||
(void)path;
|
||||
virtual bool canPackage([[maybe_unused]] const ProjectPath& path) {
|
||||
return false;
|
||||
}
|
||||
virtual void doPackage(const ProjectPath& path, const Database::DataSpecEntry* entry, bool fast, blender::Token& btok,
|
||||
const MultiProgressPrinter& progress, ClientProcess* cp = nullptr) {
|
||||
(void)path;
|
||||
}
|
||||
virtual void doPackage([[maybe_unused]] const ProjectPath& path, [[maybe_unused]] const DataSpecEntry* entry,
|
||||
[[maybe_unused]] bool fast, [[maybe_unused]] blender::Token& btok,
|
||||
[[maybe_unused]] const MultiProgressPrinter& progress,
|
||||
[[maybe_unused]] ClientProcess* cp = nullptr) {}
|
||||
|
||||
virtual void interruptCook() {}
|
||||
|
||||
|
@ -203,10 +193,8 @@ protected:
|
|||
* Part of the cooking process may include embedding database-refs to dependencies.
|
||||
* This method should store the 64-bit value provided by IDataObject::id() when doing this.
|
||||
*/
|
||||
virtual bool cookObject(FDataAppender dataAppender, DataEndianness endianness, DataPlatform platform) {
|
||||
(void)dataAppender;
|
||||
(void)endianness;
|
||||
(void)platform;
|
||||
virtual bool cookObject([[maybe_unused]] FDataAppender dataAppender, [[maybe_unused]] DataEndianness endianness,
|
||||
[[maybe_unused]] DataPlatform platform) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -220,7 +208,7 @@ protected:
|
|||
* Dependencies registered via this method will eventually have this method called on themselves
|
||||
* as well. This is a non-recursive operation, no need for subclasses to implement recursion-control.
|
||||
*/
|
||||
virtual void gatherDeps(FDepAdder depAdder) { (void)depAdder; }
|
||||
virtual void gatherDeps([[maybe_unused]] FDepAdder depAdder) {}
|
||||
|
||||
/**
|
||||
* @brief Get a packagable FourCC representation of the object's type
|
||||
|
|
Loading…
Reference in New Issue