Skip to content

entity.rb defines parse_serialization_data, remove the incorrect version #71

@davebytemfg

Description

@davebytemfg

bytemfg — Today at 5:15 PM
Now you got me looking at things, the entity.rb seems to def self.parse_serialization_data twice? Does that even work? (lines 23 and 34)
amirrajan — Today at 5:16 PM
The method on line 23 should be removed
bytemfg — Today at 5:18 PM
k, i'll write up an Issue.

diff --git a/dragon/entity.rb b/dragon/entity.rb
index 09fa794..1d252fa 100644
--- a/dragon/entity.rb
+++ b/dragon/entity.rb
@@ -20,17 +20,6 @@ module GTK
       @strict_entities
     end
 
-    def self.parse_serialization_data data
-      r = Entity.parse_serialization_data data
-      return r if r.is_a? OpenEntity
-      return r if r.is_a? StrictEntity
-      raise <<-S
-* ERROR:
-The save data looks to be corrupt.
-
-S
-    end
-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions