Skip to content

Commit 8f762da

Browse files
committed
Deleted unused and slow code.
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 88f118e commit 8f762da

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/Generator/Passes/CheckDuplicatedNamesPass.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,6 @@ public bool UpdateName(Declaration decl)
4444

4545
private bool UpdateName(Function function)
4646
{
47-
var @params = function.Parameters.Where(p => p.Kind != ParameterKind.IndirectReturnType)
48-
.Select(p => p.QualifiedType.ToString());
49-
// Include the conversion type in case of conversion operators
50-
var method = function as Method;
51-
if (method != null &&
52-
method.IsOperator &&
53-
(method.OperatorKind == CXXOperatorKind.Conversion ||
54-
method.OperatorKind == CXXOperatorKind.ExplicitConversion))
55-
@params = @params.Concat(new[] { method.ConversionType.ToString() });
56-
var signature = $"{function.Name}({string.Join(", ", @params)})";
57-
signature = FixSignatureForConversions(function, signature);
58-
5947
if (Count == 0)
6048
Count++;
6149

@@ -73,6 +61,7 @@ private bool UpdateName(Function function)
7361
if (Count < methodCount + 1)
7462
Count = methodCount + 1;
7563

64+
var method = function as Method;
7665
if (function.IsOperator)
7766
{
7867
// TODO: turn into a method; append the original type (say, "signed long")

0 commit comments

Comments
 (0)