Remove some unused variables

This commit is contained in:
LibretroAdmin 2022-08-04 22:40:46 +02:00
parent e1caf32817
commit 0594df8cce
4 changed files with 2 additions and 14 deletions

View File

@ -2719,10 +2719,6 @@ void Builder::createConditionalBranch(Id condition, Block* thenBlock, Block* els
// ...
void Builder::dumpSourceInstructions(std::vector<unsigned int>& out) const
{
const int maxWordCount = 0xFFFF;
const int opSourceWordCount = 4;
const int nonNullBytesPerInstruction = 4 * (maxWordCount - opSourceWordCount) - 1;
if (source != SourceLanguageUnknown) {
// OpSource Language Version File Source
Instruction sourceInst(NoResult, NoType, OpSource);

View File

@ -68,11 +68,7 @@ public:
if (size_ < MaxSwizzleSelectors)
components[size_++] = comp;
}
void resize(int s)
{
assert(s <= size_);
size_ = s;
}
void resize(int s) { size_ = s; }
int size() const { return size_; }
selectorType operator[](int i) const
{
@ -82,7 +78,7 @@ public:
private:
int size_;
selectorType components[MaxSwizzleSelectors];
selectorType components[MaxSwizzleSelectors+1];
};
//

View File

@ -5317,9 +5317,6 @@ TIntermTyped* HlslParseContext::handleFunctionCall(const TSourceLoc& loc, TFunct
if (arguments && !builtIn)
expandArguments(loc, *fnCandidate, arguments);
// Expansion may have changed the form of arguments
aggregate = arguments ? arguments->getAsAggregate() : nullptr;
op = fnCandidate->getBuiltInOp();
if (builtIn && op != EOpNull) {
// A function call mapped to a built-in operation.

View File

@ -1114,7 +1114,6 @@ bool run_translation_service(settings_t *settings, bool paused)
snprintf(temp_string,
sizeof(temp_string),
"%coutput=%s", separator, mode_chr);
separator = '&';
strlcat(new_ai_service_url, temp_string,
sizeof(new_ai_service_url));