mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Remove some unused variables
This commit is contained in:
parent
e1caf32817
commit
0594df8cce
4
deps/glslang/glslang/SPIRV/SpvBuilder.cpp
vendored
4
deps/glslang/glslang/SPIRV/SpvBuilder.cpp
vendored
@ -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);
|
||||
|
@ -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];
|
||||
};
|
||||
|
||||
//
|
||||
|
@ -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.
|
||||
|
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user