Skip to content

Commit

Permalink
Merge pull request #5477 from wilzbach/redundant-attributes
Browse files Browse the repository at this point in the history
Remove redundant access specifier from Phobos
  • Loading branch information
RazvanN7 committed Oct 27, 2021
2 parents e3888d4 + 63712f4 commit 1f9e056
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 16 deletions.
4 changes: 1 addition & 3 deletions std/concurrency.d
Original file line number Diff line number Diff line change
Expand Up @@ -1573,10 +1573,9 @@ private:
this.outer.yield();
}

private bool notified;
bool notified;
}

private:
void dispatch()
{
import std.algorithm.mutation : remove;
Expand All @@ -1600,7 +1599,6 @@ private:
}
}

private:
Fiber[] m_fibers;
size_t m_pos;
}
Expand Down
2 changes: 1 addition & 1 deletion std/digest/ripemd.d
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ struct RIPEMD160
* RIPEMD160 basic transformation. Transforms state based on block.
*/

private void transform(const(ubyte[64])* block)
void transform(const(ubyte[64])* block)
pure nothrow @nogc
{
uint aa = _state[0],
Expand Down
6 changes: 0 additions & 6 deletions std/internal/math/biguintcore.d
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,6 @@ pure @safe unittest
}


private:
// Converts a big uint to a hexadecimal string.
//
// Optionally, a separator character (eg, an underscore) may be added between
Expand Down Expand Up @@ -2185,7 +2184,6 @@ do
}


private:
// ------------------------
// These in-place functions are only for internal use; they are incompatible
// with COW.
Expand Down Expand Up @@ -2628,8 +2626,6 @@ again:
}
}

private:

// TODO: Replace with a library call
void itoaZeroPadded(char[] output, uint value)
pure nothrow @safe @nogc
Expand Down Expand Up @@ -2669,8 +2665,6 @@ void toHexZeroPadded(char[] output, uint value,
}
}

private:

// Returns the highest value of i for which left[i]!=right[i],
// or 0 if left[] == right[]
size_t highestDifferentDigit(const BigDigit [] left, const BigDigit [] right)
Expand Down
2 changes: 1 addition & 1 deletion std/range/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ if (Ranges.length > 0 &&
private:
alias R = staticMap!(Unqual, Ranges);
alias RvalueElementType = CommonType!(staticMap!(.ElementType, R));
private template sameET(A)
template sameET(A)
{
enum sameET = is(.ElementType!A == RvalueElementType);
}
Expand Down
5 changes: 0 additions & 5 deletions std/windows/registry.d
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ public:
return new ValueNameSequence(this);
}

public:
/**
Returns the named sub-key of this key.
Expand Down Expand Up @@ -1412,7 +1411,6 @@ public:
return getKeyName(index);
}

public:
///
int opApply(scope int delegate(ref string name) dg)
{
Expand Down Expand Up @@ -1509,7 +1507,6 @@ public:
return getKey(index);
}

public:
///
int opApply(scope int delegate(ref Key key) dg)
{
Expand Down Expand Up @@ -1618,7 +1615,6 @@ public:
return getValueName(index);
}

public:
///
int opApply(scope int delegate(ref string name) dg)
{
Expand Down Expand Up @@ -1712,7 +1708,6 @@ public:
return getValue(index);
}

public:
///
int opApply(scope int delegate(ref Value value) dg)
{
Expand Down

0 comments on commit 1f9e056

Please sign in to comment.