Fix bugs identified by unused variable warning
This commit is contained in:
parent
80e3ad1f57
commit
faa7fd4665
|
@ -154,7 +154,7 @@ private:
|
||||||
* string.sizeof);
|
* string.sizeof);
|
||||||
scope(exit) Mallocator.it.deallocate(symbolParts);
|
scope(exit) Mallocator.it.deallocate(symbolParts);
|
||||||
expandSymbol(symbolParts,
|
expandSymbol(symbolParts,
|
||||||
t.type2.symbol.identifierOrTemplateChain, stringCache, name);
|
t.type2.symbol.identifierOrTemplateChain, stringCache);
|
||||||
auto symbols = moduleScope.getSymbolsByNameAndCursor(
|
auto symbols = moduleScope.getSymbolsByNameAndCursor(
|
||||||
symbolParts[0], location);
|
symbolParts[0], location);
|
||||||
if (symbols.length == 0)
|
if (symbols.length == 0)
|
||||||
|
@ -175,7 +175,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
static void expandSymbol(string[] strings, const IdentifierOrTemplateChain chain,
|
static void expandSymbol(string[] strings, const IdentifierOrTemplateChain chain,
|
||||||
shared(StringCache)* stringCache, string n)
|
shared(StringCache)* stringCache)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < chain.identifiersOrTemplateInstances.length; ++i)
|
for (size_t i = 0; i < chain.identifiersOrTemplateInstances.length; ++i)
|
||||||
{
|
{
|
||||||
|
|
|
@ -125,5 +125,5 @@ static this()
|
||||||
TypeSuffix argumentsTypeSuffix = allocate!TypeSuffix(Mallocator.it);
|
TypeSuffix argumentsTypeSuffix = allocate!TypeSuffix(Mallocator.it);
|
||||||
argumentsTypeSuffix.array = true;
|
argumentsTypeSuffix.array = true;
|
||||||
argumentsType.typeSuffixes = cast(TypeSuffix[]) Mallocator.it.allocate(TypeSuffix.sizeof);
|
argumentsType.typeSuffixes = cast(TypeSuffix[]) Mallocator.it.allocate(TypeSuffix.sizeof);
|
||||||
argumentsType.typeSuffixes[0] = argptrTypeSuffix;
|
argumentsType.typeSuffixes[0] = argumentsTypeSuffix;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue