From 4491175bd7bb46f6071aafb89edef227120b1366 Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Tue, 14 Jan 2025 19:02:13 -0400 Subject: [PATCH] remove disabled opCmp/opEquals --- source/dyaml/dumper.d | 3 --- source/dyaml/emitter.d | 6 ------ source/dyaml/loader.d | 3 --- source/dyaml/queue.d | 5 ----- source/dyaml/resolver.d | 3 --- source/dyaml/token.d | 2 -- 6 files changed, 22 deletions(-) diff --git a/source/dyaml/dumper.d b/source/dyaml/dumper.d index 03d3620f..e4aa1d30 100644 --- a/source/dyaml/dumper.d +++ b/source/dyaml/dumper.d @@ -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 diff --git a/source/dyaml/emitter.d b/source/dyaml/emitter.d index 29ebf2ea..b61fea1b 100644 --- a/source/dyaml/emitter.d +++ b/source/dyaml/emitter.d @@ -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. * @@ -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; diff --git a/source/dyaml/loader.d b/source/dyaml/loader.d index 6b79ad5a..358855ae 100644 --- a/source/dyaml/loader.d +++ b/source/dyaml/loader.d @@ -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. diff --git a/source/dyaml/queue.d b/source/dyaml/queue.d index 57b0d349..35b45c89 100644 --- a/source/dyaml/queue.d +++ b/source/dyaml/queue.d @@ -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_; diff --git a/source/dyaml/resolver.d b/source/dyaml/resolver.d index 9ada4c2d..4e82931c 100644 --- a/source/dyaml/resolver.d +++ b/source/dyaml/resolver.d @@ -100,9 +100,6 @@ struct Resolver } public: - @disable bool opEquals(ref Resolver); - @disable int opCmp(ref Resolver); - /** * Add an implicit scalar resolver. * diff --git a/source/dyaml/token.d b/source/dyaml/token.d index 5400a3f9..b67400fe 100644 --- a/source/dyaml/token.d +++ b/source/dyaml/token.d @@ -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. ///