Remove some unused variables
This commit is contained in:
parent
e1caf32817
commit
0594df8cce
|
@ -2719,10 +2719,6 @@ void Builder::createConditionalBranch(Id condition, Block* thenBlock, Block* els
|
||||||
// ...
|
// ...
|
||||||
void Builder::dumpSourceInstructions(std::vector<unsigned int>& out) const
|
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) {
|
if (source != SourceLanguageUnknown) {
|
||||||
// OpSource Language Version File Source
|
// OpSource Language Version File Source
|
||||||
Instruction sourceInst(NoResult, NoType, OpSource);
|
Instruction sourceInst(NoResult, NoType, OpSource);
|
||||||
|
|
|
@ -68,11 +68,7 @@ public:
|
||||||
if (size_ < MaxSwizzleSelectors)
|
if (size_ < MaxSwizzleSelectors)
|
||||||
components[size_++] = comp;
|
components[size_++] = comp;
|
||||||
}
|
}
|
||||||
void resize(int s)
|
void resize(int s) { size_ = s; }
|
||||||
{
|
|
||||||
assert(s <= size_);
|
|
||||||
size_ = s;
|
|
||||||
}
|
|
||||||
int size() const { return size_; }
|
int size() const { return size_; }
|
||||||
selectorType operator[](int i) const
|
selectorType operator[](int i) const
|
||||||
{
|
{
|
||||||
|
@ -82,7 +78,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int size_;
|
int size_;
|
||||||
selectorType components[MaxSwizzleSelectors];
|
selectorType components[MaxSwizzleSelectors+1];
|
||||||
};
|
};
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -5317,9 +5317,6 @@ TIntermTyped* HlslParseContext::handleFunctionCall(const TSourceLoc& loc, TFunct
|
||||||
if (arguments && !builtIn)
|
if (arguments && !builtIn)
|
||||||
expandArguments(loc, *fnCandidate, arguments);
|
expandArguments(loc, *fnCandidate, arguments);
|
||||||
|
|
||||||
// Expansion may have changed the form of arguments
|
|
||||||
aggregate = arguments ? arguments->getAsAggregate() : nullptr;
|
|
||||||
|
|
||||||
op = fnCandidate->getBuiltInOp();
|
op = fnCandidate->getBuiltInOp();
|
||||||
if (builtIn && op != EOpNull) {
|
if (builtIn && op != EOpNull) {
|
||||||
// A function call mapped to a built-in operation.
|
// 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,
|
snprintf(temp_string,
|
||||||
sizeof(temp_string),
|
sizeof(temp_string),
|
||||||
"%coutput=%s", separator, mode_chr);
|
"%coutput=%s", separator, mode_chr);
|
||||||
separator = '&';
|
|
||||||
|
|
||||||
strlcat(new_ai_service_url, temp_string,
|
strlcat(new_ai_service_url, temp_string,
|
||||||
sizeof(new_ai_service_url));
|
sizeof(new_ai_service_url));
|
||||||
|
|
Loading…
Reference in New Issue