Skip to content

Commit

Permalink
remove disabled opCmp/opEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
Herringway committed Jan 14, 2025
1 parent 3a5a2c5 commit 4491175
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 22 deletions.
3 changes: 0 additions & 3 deletions source/dyaml/dumper.d
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ struct Dumper
// Default style for collection nodes. If style is $(D CollectionStyle.invalid), the _style is chosen automatically.
CollectionStyle defaultCollectionStyle = CollectionStyle.invalid;

@disable bool opEquals(ref Dumper);
@disable int opCmp(ref Dumper);

///Set indentation width. 2 by default. Must not be zero.
@property void indent(uint indent) pure @safe nothrow
in
Expand Down
6 changes: 0 additions & 6 deletions source/dyaml/emitter.d
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
ScalarStyle style_ = ScalarStyle.invalid;

public:
@disable int opCmp(ref Emitter);
@disable bool opEquals(ref Emitter);

/**
* Construct an emitter.
*
Expand Down Expand Up @@ -1283,9 +1280,6 @@ struct ScalarWriter(Range, CharType)
}

private:
@disable int opCmp(ref Emitter!(Range, CharType));
@disable bool opEquals(ref Emitter!(Range, CharType));

///Used as "null" UTF-32 character.
static immutable dcharNone = dchar.max;

Expand Down
3 changes: 0 additions & 3 deletions source/dyaml/loader.d
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ struct Loader
bool rangeInitialized;

public:
@disable int opCmp(ref Loader);
@disable bool opEquals(ref Loader);

/** Construct a Loader to load YAML from a file.
*
* Params: filename = Name of the file to load from.
Expand Down
5 changes: 0 additions & 5 deletions source/dyaml/queue.d
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ private:
}

public:

@disable void opAssign(ref Queue);
@disable bool opEquals(ref Queue);
@disable int opCmp(ref Queue);

this(this) @safe nothrow @nogc
{
auto node = first_;
Expand Down
3 changes: 0 additions & 3 deletions source/dyaml/resolver.d
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ struct Resolver
}

public:
@disable bool opEquals(ref Resolver);
@disable int opCmp(ref Resolver);

/**
* Add an implicit scalar resolver.
*
Expand Down
2 changes: 0 additions & 2 deletions source/dyaml/token.d
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ enum DirectiveType : ubyte
/// 32 bytes on 64-bit.
struct Token
{
@disable int opCmp(ref Token);

// 16B
/// Value of the token, if any.
///
Expand Down

0 comments on commit 4491175

Please sign in to comment.